CultriX commited on
Commit
78c8fb4
·
verified ·
1 Parent(s): 3548774

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -201,11 +201,11 @@ with gr.Blocks(theme=theme, title="ZeroGPU OCR PDF & Image Extractor") as demo:
201
  show_copy_button=True)
202
  dl = gr.File(label="Download .txt")
203
 
204
- # Explicit output mapping and enable streaming
205
  btn.click(
206
  fn=pipeline,
207
  inputs=[file_in, lang_in, mode_in],
208
- outputs={"out": out_txt, "dl": dl}
209
  )
210
  demo.queue()
211
 
 
201
  show_copy_button=True)
202
  dl = gr.File(label="Download .txt")
203
 
204
+ # Use a list for outputs to match Gradio API
205
  btn.click(
206
  fn=pipeline,
207
  inputs=[file_in, lang_in, mode_in],
208
+ outputs=[out_txt, dl]
209
  )
210
  demo.queue()
211