not-lain commited on
Commit
4b0678e
·
verified ·
1 Parent(s): c780148

Create app.py

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 pdf2image import convert_from_path
3
+
4
+ def process(file) :
5
+ images = convert_from_path(file)
6
+ return images
7
+ !
8
+ demo = gr.Interface(process,gr.File(),gr.Gallery())
9
+ demo.launch(debug=True)