Create app.py
Browse files
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)
|