on1onmangoes commited on
Commit
1d017d0
·
verified ·
1 Parent(s): fabefc8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -235,8 +235,7 @@ with gr.Blocks(css=CSS) as demo:
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")
 
235
  with gr.Tab ("View PDF"):
236
  pdf = PDF(label="Upload a PDF", interactive=True)
237
  name = gr.Textbox()
238
+ pdf.upload(fn=view_pdf, inputs=[pdf], outputs=[pdf,name], api_name = "view_pdf")
 
239
 
240
  with gr.Tab("Process PDF"):
241
  pdf_input = gr.File(label="Upload PDF File")