Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import json
|
| 3 |
import plotly.express as px
|
|
@@ -685,13 +686,19 @@ def main():
|
|
| 685 |
#app.launch()
|
| 686 |
return app
|
| 687 |
|
| 688 |
-
import os
|
| 689 |
|
|
|
|
|
|
|
| 690 |
if __name__ == "__main__":
|
| 691 |
port = int(os.environ.get("PORT", 7860))
|
| 692 |
-
|
| 693 |
app.launch(
|
| 694 |
-
|
| 695 |
-
|
| 696 |
-
|
|
|
|
|
|
|
| 697 |
)
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
import gradio as gr
|
| 3 |
import json
|
| 4 |
import plotly.express as px
|
|
|
|
| 686 |
#app.launch()
|
| 687 |
return app
|
| 688 |
|
|
|
|
| 689 |
|
| 690 |
+
|
| 691 |
+
app = main()
|
| 692 |
if __name__ == "__main__":
|
| 693 |
port = int(os.environ.get("PORT", 7860))
|
| 694 |
+
print(f"🚀 Starting server on port {port}")
|
| 695 |
app.launch(
|
| 696 |
+
server_name="0.0.0.0",
|
| 697 |
+
server_port=port,
|
| 698 |
+
share=False,
|
| 699 |
+
enable_queue=False, # Disable queuing system
|
| 700 |
+
show_error=False # Reduce startup overhead
|
| 701 |
)
|
| 702 |
+
print("✅ Server started successfully")
|
| 703 |
+
|
| 704 |
+
|