Spaces:
Runtime error
Runtime error
Commit
·
dd899a3
1
Parent(s):
c91ff76
Update app.py
Browse files
app.py
CHANGED
@@ -73,9 +73,10 @@ def pdf_to_text(file):
|
|
73 |
|
74 |
return output_file_name
|
75 |
|
76 |
-
iface =
|
77 |
inputs=gr.inputs.File(label="Your PDF"),
|
78 |
outputs=gr.outputs.File(label="Download TXT"),
|
79 |
title="PDF to TXT",
|
80 |
description="Convert your PDF files to clean text")
|
81 |
iface.launch()
|
|
|
|
73 |
|
74 |
return output_file_name
|
75 |
|
76 |
+
iface = gr.Interface(fn=pdf_to_text,
|
77 |
inputs=gr.inputs.File(label="Your PDF"),
|
78 |
outputs=gr.outputs.File(label="Download TXT"),
|
79 |
title="PDF to TXT",
|
80 |
description="Convert your PDF files to clean text")
|
81 |
iface.launch()
|
82 |
+
|