Sephfox commited on
Commit
4031169
·
verified ·
1 Parent(s): 1978fc5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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