rodrisouza commited on
Commit
1649c20
·
verified ·
1 Parent(s): c5642bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -205,4 +205,7 @@ with gr.Blocks() as demo:
205
  chat_history_json = gr.JSON(value=[], visible=False)
206
 
207
  send_story_button.click(fn=send_selected_story, inputs=[story_dropdown, model_dropdown, system_prompt_dropdown], outputs=[chatbot_output, chat_history_json, data_table, selected_story_textbox])
208
- send_message_button.click(fn=interact, inputs=[chatbot_input, chat_hist
 
 
 
 
205
  chat_history_json = gr.JSON(value=[], visible=False)
206
 
207
  send_story_button.click(fn=send_selected_story, inputs=[story_dropdown, model_dropdown, system_prompt_dropdown], outputs=[chatbot_output, chat_history_json, data_table, selected_story_textbox])
208
+ send_message_button.click(fn=interact, inputs=[chatbot_input, chat_history_json], outputs=[chatbot_input, chatbot_output, chat_history_json])
209
+ save_button.click(fn=save_comment_score, inputs=[chatbot_output, score_input, comment_input, story_dropdown, user_dropdown], outputs=[data_table, comment_input])
210
+
211
+ demo.launch()