chatbytes commited on
Commit
a0ea75f
·
verified ·
1 Parent(s): 50ab22e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -44,7 +44,7 @@ def text_extract(file):
44
  with gr.Blocks() as demo:
45
  gr.Markdown("# Chat with ChatGPT-like Interface")
46
 
47
- chatbot = gr.Chatbot()
48
  state = gr.State([])
49
 
50
  with gr.Row():
@@ -59,7 +59,7 @@ with gr.Blocks() as demo:
59
  # submit_btn.click(text_extract, inputs=[input_file], outputs=[user_input])
60
 
61
  # Connect send button to chatbot_response function
62
- send_btn.click(chatbot_response, inputs=[user_input], outputs=[chatbot])
63
 
64
  # Initialize embeddings and launch the app
65
  if __name__ == "__main__":
 
44
  with gr.Blocks() as demo:
45
  gr.Markdown("# Chat with ChatGPT-like Interface")
46
 
47
+ output = gr.Textbox(label="Output Box")
48
  state = gr.State([])
49
 
50
  with gr.Row():
 
59
  # submit_btn.click(text_extract, inputs=[input_file], outputs=[user_input])
60
 
61
  # Connect send button to chatbot_response function
62
+ send_btn.click(chatbot_response, inputs=user_input, outputs=output)
63
 
64
  # Initialize embeddings and launch the app
65
  if __name__ == "__main__":