Spaces:
No application file
No application file
Update app.py
Browse files
app.py
CHANGED
|
@@ -1121,10 +1121,7 @@ with gr.Blocks() as demo:
|
|
| 1121 |
# Mount Gradio app to FastAPI
|
| 1122 |
app = gr.mount_gradio_app(app, demo, path="/")
|
| 1123 |
|
| 1124 |
-
#
|
| 1125 |
-
#
|
| 1126 |
-
|
| 1127 |
-
|
| 1128 |
-
if not os.environ.get("SPACE_ID"):
|
| 1129 |
-
import uvicorn
|
| 1130 |
-
uvicorn.run(app, host="0.0.0.0", port=7860)
|
|
|
|
| 1121 |
# Mount Gradio app to FastAPI
|
| 1122 |
app = gr.mount_gradio_app(app, demo, path="/")
|
| 1123 |
|
| 1124 |
+
# Remove or comment out the manual server start
|
| 1125 |
+
# if __name__ == "__main__":
|
| 1126 |
+
# import uvicorn
|
| 1127 |
+
# uvicorn.run(app, host="0.0.0.0", port=7860)
|
|
|
|
|
|
|
|
|