ysharma HF staff commited on
Commit
54c4f66
·
verified ·
1 Parent(s): f9b4404

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -131,10 +131,10 @@ with gr.Blocks() as demo:
131
  num_start = gr.Number(visible=False, value=0)
132
  num_end = gr.Number(visible=False, value=4)
133
 
134
- chat_msg = chat_input.submit(add_message, [chatbot, chat_input], [chatbot, chat_input])
135
- bot_msg = chat_msg.then(bot, chatbot, chatbot, api_name="bot_response")
136
- bot_msg.then(lambda: gr.MultimodalTextbox(interactive=True), None, [chat_input])
137
- chatbot.like(print_like_dislike, None, None)
138
 
139
  def get_example(reka, evt: gr.SelectData):
140
  print(f'evt.value = {evt.value}')
 
131
  num_start = gr.Number(visible=False, value=0)
132
  num_end = gr.Number(visible=False, value=4)
133
 
134
+ #chat_msg = chat_input.submit(add_message, [chatbot, chat_input], [chatbot, chat_input])
135
+ #bot_msg = chat_msg.then(bot, chatbot, chatbot, api_name="bot_response")
136
+ #bot_msg.then(lambda: gr.MultimodalTextbox(interactive=True), None, [chat_input])
137
+ #chatbot.like(print_like_dislike, None, None)
138
 
139
  def get_example(reka, evt: gr.SelectData):
140
  print(f'evt.value = {evt.value}')