Spaces:
Runtime error
Runtime error
Commit ·
8d40917
1
Parent(s): dd21f85
Update app.py
Browse files
app.py
CHANGED
|
@@ -122,7 +122,7 @@ with gr.Blocks() as demo:
|
|
| 122 |
change_api_key.click(fn=enable_api_box, outputs=[api_key])
|
| 123 |
|
| 124 |
# Event handler for uploading a PDF
|
| 125 |
-
btn.upload(fn=
|
| 126 |
|
| 127 |
# Event handler for submitting text and generating response
|
| 128 |
submit_btn.click(
|
|
|
|
| 122 |
change_api_key.click(fn=enable_api_box, outputs=[api_key])
|
| 123 |
|
| 124 |
# Event handler for uploading a PDF
|
| 125 |
+
btn.upload(fn=render_file, inputs=[btn], outputs=[show_img])
|
| 126 |
|
| 127 |
# Event handler for submitting text and generating response
|
| 128 |
submit_btn.click(
|