Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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(
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
)
|