NCTCMumbai commited on
Commit
c7c6546
·
verified ·
1 Parent(s): 85a937d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -139,7 +139,7 @@ with gr.Blocks(theme='WeixuanYuan/Soft_dark') as demo:
139
  show_copy_button=True,
140
  show_share_button=True,
141
  )
142
- chatbot1 = gr.Chatbot()
143
 
144
  with gr.Row():
145
  txt = gr.Textbox(
@@ -165,7 +165,7 @@ with gr.Blocks(theme='WeixuanYuan/Soft_dark') as demo:
165
  try:
166
  # Turn off interactivity while generating if you hit enter
167
  txt_msg = txt.submit(add_text, [chatbot, txt], [chatbot, txt], queue=False).then(
168
- bot, [chatbot, api_kind], [chatbot1, prompt_html])
169
  except Exception as e:
170
  print ('Exception ' ,str(e))
171
 
 
139
  show_copy_button=True,
140
  show_share_button=True,
141
  )
142
+ chattext = gr.Textbox()
143
 
144
  with gr.Row():
145
  txt = gr.Textbox(
 
165
  try:
166
  # Turn off interactivity while generating if you hit enter
167
  txt_msg = txt.submit(add_text, [chatbot, txt], [chatbot, txt], queue=False).then(
168
+ bot, [chatbot, api_kind], [chattext, prompt_html])
169
  except Exception as e:
170
  print ('Exception ' ,str(e))
171