histlearn commited on
Commit
2a07eca
verified
1 Parent(s): a44adb0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -674,7 +674,11 @@ def processar_boletim(file):
674
  # Interface Gradio
675
  iface = gr.Interface(
676
  fn=processar_boletim,
677
- inputs=gr.File(label="Upload do Boletim (PDF)"),
 
 
 
 
678
  outputs=[
679
  gr.File(label="Relat贸rio (PDF)"),
680
  gr.Textbox(label="Status")
@@ -685,4 +689,7 @@ iface = gr.Interface(
685
  )
686
 
687
  if __name__ == "__main__":
688
- iface.launch(server_name="0.0.0.0")
 
 
 
 
674
  # Interface Gradio
675
  iface = gr.Interface(
676
  fn=processar_boletim,
677
+ inputs=gr.File(
678
+ label="Upload do Boletim (PDF)",
679
+ type="binary",
680
+ file_types=[".pdf"]
681
+ ),
682
  outputs=[
683
  gr.File(label="Relat贸rio (PDF)"),
684
  gr.Textbox(label="Status")
 
689
  )
690
 
691
  if __name__ == "__main__":
692
+ iface.launch(
693
+ server_name="0.0.0.0",
694
+ share=True
695
+ )