Spaces:
Running
Running
Commit
·
5d12990
1
Parent(s):
011cb7f
Update app.py
Browse files
app.py
CHANGED
@@ -119,12 +119,12 @@ with gr.Blocks() as demo:
|
|
119 |
This demo allows you to analyse the emotion in a sentence.
|
120 |
""")
|
121 |
with gr.Row():
|
122 |
-
|
123 |
-
|
124 |
-
|
|
|
|
|
125 |
output = gr.Textbox()
|
126 |
-
with gr.Row():
|
127 |
-
send_btn = gr.Button("Send")
|
128 |
send_btn.click(fn=inference_sentence, inputs=input, outputs=output)
|
129 |
with gr.Tab("Dataset"):
|
130 |
gr.Markdown("""
|
@@ -132,12 +132,12 @@ with gr.Blocks() as demo:
|
|
132 |
This demo allows you to analyse the emotion in a sentence.
|
133 |
""")
|
134 |
with gr.Row():
|
135 |
-
|
136 |
-
|
137 |
-
|
|
|
|
|
138 |
output = gr.Textbox()
|
139 |
-
with gr.Row():
|
140 |
-
send_btn = gr.Button("Send")
|
141 |
send_btn.click(fn=inference_sentence, inputs=input, outputs=output)
|
142 |
|
143 |
demo.launch()
|
|
|
119 |
This demo allows you to analyse the emotion in a sentence.
|
120 |
""")
|
121 |
with gr.Row():
|
122 |
+
with gr.Column():
|
123 |
+
input = gr.Textbox(
|
124 |
+
label="Enter a sentence",
|
125 |
+
lines=1)
|
126 |
+
send_btn = gr.Button("Send")
|
127 |
output = gr.Textbox()
|
|
|
|
|
128 |
send_btn.click(fn=inference_sentence, inputs=input, outputs=output)
|
129 |
with gr.Tab("Dataset"):
|
130 |
gr.Markdown("""
|
|
|
132 |
This demo allows you to analyse the emotion in a sentence.
|
133 |
""")
|
134 |
with gr.Row():
|
135 |
+
with gr.Column():
|
136 |
+
input = gr.Textbox(
|
137 |
+
label="Enter a sentence",
|
138 |
+
lines=1)
|
139 |
+
send_btn = gr.Button("Send")
|
140 |
output = gr.Textbox()
|
|
|
|
|
141 |
send_btn.click(fn=inference_sentence, inputs=input, outputs=output)
|
142 |
|
143 |
demo.launch()
|