pierreguillou commited on
Commit
5d26f13
1 Parent(s): 3075e2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -33,12 +33,10 @@ theme = "peach" # default, huggingface, grass, peach
33
 
34
  iface = gr.Interface(fn=pdf_to_imgs,
35
  #inputs=[gr.File(label="PDF"), gr.Checkbox(label="Only first page?", value=True)],
36
- #inputs=gr.File(label="PDF"), # sdk_version: 3.0.2
37
- inputs="file",
38
- #inputs=gr.inputs.File(type="file", label="PDF"), # sdk_version: 2.9.4 needed to use gr.Interface.load("spaces/pierreguillou/pdf2imgs") in other Speces
39
- #outputs=[gr.Image(type="numpy", label="page image"), gr.Textbox(label="number of pages")],
40
- #outputs=gr.outputs.Image(type="numpy", label="image of the first page"), # sdk_version: 2.9.4 needed to use gr.Interface.load("spaces/pierreguillou/pdf2imgs") in other Speces
41
- outputs=gr.outputs.Image(label="image of the first page"), # sdk_version: 2.9.4 needed to use gr.Interface.load("spaces/pierreguillou/pdf2imgs") in other Speces
42
  title=title,
43
  description=description,
44
  examples=examples,
 
33
 
34
  iface = gr.Interface(fn=pdf_to_imgs,
35
  #inputs=[gr.File(label="PDF"), gr.Checkbox(label="Only first page?", value=True)],
36
+ inputs=gr.File(label="PDF"), # sdk_version: 3.0.2
37
+ #inputs=gr.inputs.File(type="file", label="PDF"), # sdk_version: 2.9.4 needed to use gr.Interface.load("spaces/pierreguillou/pdf2imgs") in other Spaces
38
+ #outputs=[gr.Image(type="numpy", label="page image"), gr.Textbox(label="number of pages")], # sdk_version: 3.0.2
39
+ outputs=gr.Image(type="numpy", label="image of the first page"), # sdk_version: 3.0.2
 
 
40
  title=title,
41
  description=description,
42
  examples=examples,