Update app.py
Browse files
app.py
CHANGED
@@ -164,9 +164,17 @@ with gr.Blocks(title="Emotion Reader", theme=gr.themes.Ocean()) as emotion_reade
|
|
164 |
with gr.Row():
|
165 |
with gr.Column(): #user text input
|
166 |
text_input = gr.Textbox(
|
167 |
-
label="Type your
|
168 |
placeholder="Enter text"
|
169 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
with gr.Column(): #emotion results
|
171 |
emotion_result = gr.Textbox(label="Emotion Results")
|
172 |
|
|
|
164 |
with gr.Row():
|
165 |
with gr.Column(): #user text input
|
166 |
text_input = gr.Textbox(
|
167 |
+
label="Type your thoughts here. Type 'quit' to see final results.",
|
168 |
placeholder="Enter text"
|
169 |
)
|
170 |
+
examples = gr.Examples(
|
171 |
+
examples=[
|
172 |
+
"I am feeling happy today!",
|
173 |
+
"I am feeling sad today.",
|
174 |
+
"I wish I could go on vacation."
|
175 |
+
],
|
176 |
+
inputs=text_input
|
177 |
+
)
|
178 |
with gr.Column(): #emotion results
|
179 |
emotion_result = gr.Textbox(label="Emotion Results")
|
180 |
|