histlearn commited on
Commit
fa4e027
·
verified ·
1 Parent(s): efe137a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -741,7 +741,7 @@ iface = gr.Interface(
741
  fn=processar_boletim,
742
  inputs=gr.File(
743
  label="Upload do Boletim (PDF)",
744
- type="binary", # Especificar tipo binary
745
  file_types=[".pdf"]
746
  ),
747
  outputs=[
@@ -754,7 +754,4 @@ iface = gr.Interface(
754
  )
755
 
756
  if __name__ == "__main__":
757
- iface.launch(
758
- server_name="0.0.0.0",
759
- share=True
760
- )
 
741
  fn=processar_boletim,
742
  inputs=gr.File(
743
  label="Upload do Boletim (PDF)",
744
+ type="binary", # Garante que receberemos os bytes
745
  file_types=[".pdf"]
746
  ),
747
  outputs=[
 
754
  )
755
 
756
  if __name__ == "__main__":
757
+ iface.launch(server_name="0.0.0.0")