Update app.py
Browse files
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 |
-
|
| 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=
|
| 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__":
|