Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ def read_pdf(file):
|
|
10 |
text = extract_text(file)
|
11 |
return text
|
12 |
|
13 |
-
iface = gr.Interface(fn=read_pdf, inputs="
|
14 |
title="PDF Text Extractor",
|
15 |
description="Extract text from a PDF file.")
|
16 |
iface.launch()
|
|
|
10 |
text = extract_text(file)
|
11 |
return text
|
12 |
|
13 |
+
iface = gr.Interface(fn=read_pdf, inputs="file", outputs="text",
|
14 |
title="PDF Text Extractor",
|
15 |
description="Extract text from a PDF file.")
|
16 |
iface.launch()
|