eeuuia commited on
Commit
8c9d6b8
·
verified ·
1 Parent(s): e692e85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -9
app.py CHANGED
@@ -209,12 +209,7 @@ def _register_event_handlers(app_state: gr.State, ui: dict):
209
  # ==============================================================================
210
  # --- PONTO DE ENTRADA DA APLICAÇÃO ---
211
  # ==============================================================================
212
- if __name__ == "__main__":
213
- print("Building Gradio UI...")
214
- gradio_app = build_ui()
215
- print("Launching Gradio app...")
216
- gradio_app.queue().launch(
217
- server_name=os.getenv("GRADIO_SERVER_NAME", "0.0.0.0"),
218
- server_port=int(os.getenv("GRADIO_SERVER_PORT", "7860")),
219
- show_error=True
220
- )
 
209
  # ==============================================================================
210
  # --- PONTO DE ENTRADA DA APLICAÇÃO ---
211
  # ==============================================================================
212
+
213
+ if __name__ == "__main__":
214
+ demo = build_ui()
215
+ demo.queue().launch(server_name="0.0.0.0", server_port=7860, debug=True, show_error=