Spaces:
Running
Running
Update app.py
Browse filesremove concurency
app.py
CHANGED
|
@@ -201,8 +201,7 @@ with gr.Blocks(title="PDF Q&A Chatbot") as demo:
|
|
| 201 |
pdf_input.upload(load_pdf, inputs=[pdf_input, state], outputs=[pdf_status, state])
|
| 202 |
ask_button.click(answer_question, inputs=[question, state], outputs=answer)
|
| 203 |
|
| 204 |
-
|
| 205 |
-
demo.queue(max_size=32, concurrency=1)
|
| 206 |
|
| 207 |
if __name__ == "__main__":
|
| 208 |
demo.launch()
|
|
|
|
| 201 |
pdf_input.upload(load_pdf, inputs=[pdf_input, state], outputs=[pdf_status, state])
|
| 202 |
ask_button.click(answer_question, inputs=[question, state], outputs=answer)
|
| 203 |
|
| 204 |
+
|
|
|
|
| 205 |
|
| 206 |
if __name__ == "__main__":
|
| 207 |
demo.launch()
|