Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -192,8 +192,8 @@ with gr.Blocks() as demo:
|
|
192 |
predict_btn = gr.Button("Predict Emotion and Generate Text")
|
193 |
|
194 |
with gr.Row():
|
195 |
-
emotion_output = gr.Textbox(label="Predicted Emotion")
|
196 |
-
generated_text_output = gr.Textbox(label="Generated Text")
|
197 |
|
198 |
predict_btn.click(fn=lambda context: (predict_emotion(context), generate_response(context, emotion=predict_emotion(context))), inputs=context_input, outputs=[emotion_output, generated_text_output])
|
199 |
|
|
|
192 |
predict_btn = gr.Button("Predict Emotion and Generate Text")
|
193 |
|
194 |
with gr.Row():
|
195 |
+
emotion_output = gr.Textbox(label="Predicted Emotion", show_label=True)
|
196 |
+
generated_text_output = gr.Textbox(label="Generated Text", show_label=True)
|
197 |
|
198 |
predict_btn.click(fn=lambda context: (predict_emotion(context), generate_response(context, emotion=predict_emotion(context))), inputs=context_input, outputs=[emotion_output, generated_text_output])
|
199 |
|