vsrinivas commited on
Commit
a50deea
1 Parent(s): 75f9996

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -42,8 +42,8 @@ with gr.Blocks() as demo:
42
  chatbox = gr.Chatbot(label="Therapy Session Conversation",value =[[None, 'Therapist: Hello, What can I do for you?']], height=300)
43
  user_input = gr.Textbox(placeholder="Enter your message here...", label="User")
44
  submit_button = gr.Button("Submit")
45
- submit_button.click(submit, [user_input, chatbox], [user_input, chatbox, emotions])
46
- user_input.submit(submit, [user_input, chatbox], [user_input, chatbox, emotions])
47
  recommendations = gr.Textbox(label="Recommended Actions", visible = False)
48
 
49
  def summarize_and_recommend_process():
 
42
  chatbox = gr.Chatbot(label="Therapy Session Conversation",value =[[None, 'Therapist: Hello, What can I do for you?']], height=300)
43
  user_input = gr.Textbox(placeholder="Enter your message here...", label="User")
44
  submit_button = gr.Button("Submit")
45
+ submit_button.click(submit, [user_input, chatbox, session_conversation], [user_input, chatbox, emotions])
46
+ user_input.submit(submit, [user_input, chatbox, session_conversation], [user_input, chatbox, emotions])
47
  recommendations = gr.Textbox(label="Recommended Actions", visible = False)
48
 
49
  def summarize_and_recommend_process():