Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -105,7 +105,8 @@ with gr.Blocks() as demo:
|
|
| 105 |
chatbot = gr.Chatbot(label="Chat history!!!")
|
| 106 |
msg=gr.Textbox(label="Ask anything related to pdf...")
|
| 107 |
clear = gr.Button("Clear chat")
|
| 108 |
-
|
|
|
|
| 109 |
|
| 110 |
file_input.change(upload_pdf, inputs=[file_input], outputs=[status])
|
| 111 |
msg.submit(ask_question, [msg, state], [chatbot, state])
|
|
|
|
| 105 |
chatbot = gr.Chatbot(label="Chat history!!!")
|
| 106 |
msg=gr.Textbox(label="Ask anything related to pdf...")
|
| 107 |
clear = gr.Button("Clear chat")
|
| 108 |
+
|
| 109 |
+
state = gr.State([])
|
| 110 |
|
| 111 |
file_input.change(upload_pdf, inputs=[file_input], outputs=[status])
|
| 112 |
msg.submit(ask_question, [msg, state], [chatbot, state])
|