Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -234,9 +234,9 @@ with gr.Blocks(css=CSS) as demo:
|
|
234 |
|
235 |
with gr.Tab ("View PDF"):
|
236 |
pdf = PDF(label="Upload a PDF", interactive=True)
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
|
241 |
with gr.Tab("Process PDF"):
|
242 |
pdf_input = gr.File(label="Upload PDF File")
|
|
|
234 |
|
235 |
with gr.Tab ("View PDF"):
|
236 |
pdf = PDF(label="Upload a PDF", interactive=True)
|
237 |
+
name = gr.Textbox()
|
238 |
+
#pdf.upload(lambda f: f, pdf, name)
|
239 |
+
pdf.upload(fn=view_pdf_name, inputs=[pdf], outputs=[pdf,name], api_name = "view_pdf_name")
|
240 |
|
241 |
with gr.Tab("Process PDF"):
|
242 |
pdf_input = gr.File(label="Upload PDF File")
|