Spaces:
Running
Running
Andre
commited on
Commit
·
240520d
1
Parent(s):
671e28f
add app_render.py
Browse files- __pycache__/app_modal.cpython-311.pyc +0 -0
- app_render.py +1 -1
__pycache__/app_modal.cpython-311.pyc
ADDED
Binary file (5.01 kB). View file
|
|
app_render.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
# Import gradio_interface
|
2 |
import os
|
3 |
from app_modal import demo
|
4 |
-
port = int(os.environ.get("PORT",
|
5 |
# Launch the Gradio app
|
6 |
demo.launch(server_name="0.0.0.0", server_port=port)
|
|
|
1 |
# Import gradio_interface
|
2 |
import os
|
3 |
from app_modal import demo
|
4 |
+
port = int(os.environ.get("PORT", 7860)) # Use Render's PORT or default to 7860
|
5 |
# Launch the Gradio app
|
6 |
demo.launch(server_name="0.0.0.0", server_port=port)
|