nos commited on
Commit
d53ee18
1 Parent(s): d5966cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -49,9 +49,14 @@ def flip_image(x):
49
  with gr.Blocks() as demo:
50
  with gr.Tab("Chat"):
51
  with gr.Row(equal_height=False):
52
- gr.ChatInterface(
53
- respond
54
- )
 
 
 
 
 
55
  with gr.Tab("ELS"):
56
  with gr.Row():
57
  image_input = gr.Image()
 
49
  with gr.Blocks() as demo:
50
  with gr.Tab("Chat"):
51
  with gr.Row(equal_height=False):
52
+ chatbot = gr.Chatbot()
53
+ msg = gr.Textbox()
54
+ clear = gr.ClearButton([msg, chatbot])
55
+
56
+ msg.submit(respond, [msg, chatbot], [msg, chatbot])
57
+ ## gr.ChatInterface(
58
+ ## respond
59
+ ## )
60
  with gr.Tab("ELS"):
61
  with gr.Row():
62
  image_input = gr.Image()