Spaces:
Sleeping
Sleeping
remove text file for api
Browse files
app.py
CHANGED
@@ -167,17 +167,11 @@ if __name__ == "__main__":
|
|
167 |
OCR_text = gr.Textbox(
|
168 |
label="OCR Result", placeholder="The OCR text will appear here"
|
169 |
)
|
170 |
-
text_file = gr.File(
|
171 |
-
label="Download Text File",
|
172 |
-
file_count="single",
|
173 |
-
type="file",
|
174 |
-
interactive=False,
|
175 |
-
)
|
176 |
|
177 |
convert_button.click(
|
178 |
fn=convert_PDF,
|
179 |
inputs=[uploaded_file],
|
180 |
-
outputs=[OCR_text, out_placeholder
|
181 |
api_name="convert_PDF",
|
182 |
)
|
183 |
demo.launch()
|
|
|
167 |
OCR_text = gr.Textbox(
|
168 |
label="OCR Result", placeholder="The OCR text will appear here"
|
169 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
|
171 |
convert_button.click(
|
172 |
fn=convert_PDF,
|
173 |
inputs=[uploaded_file],
|
174 |
+
outputs=[OCR_text, out_placeholder],
|
175 |
api_name="convert_PDF",
|
176 |
)
|
177 |
demo.launch()
|