spagestic commited on
Commit
7f023d8
·
1 Parent(s): de90621

feat: Initialize PDF upload functionality with Gradio interface

Browse files
Files changed (1) hide show
  1. _app.py +9 -0
_app.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from gradio_pdf import PDF
3
+
4
+ with gr.Blocks() as demo:
5
+ pdf = PDF(label="Upload a PDF", interactive=True)
6
+ name = gr.Textbox()
7
+ pdf.upload(lambda f: f, pdf, name)
8
+
9
+ demo.launch()