contadino commited on
Commit
8676402
·
1 Parent(s): 0185eb2

remove text file for api

Browse files
Files changed (1) hide show
  1. app.py +1 -7
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, text_file],
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()