Spaces:
Running
on
Zero
Running
on
Zero
exposing app?
Browse files
app.py
CHANGED
|
@@ -73,8 +73,10 @@ with gr.Blocks() as demo:
|
|
| 73 |
app = gr.mount_gradio_app(app, demo, path="/", ssr_mode=False)
|
| 74 |
app.zerogpu = True
|
| 75 |
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
|
|
|
|
|
|
|
|
| 73 |
app = gr.mount_gradio_app(app, demo, path="/", ssr_mode=False)
|
| 74 |
app.zerogpu = True
|
| 75 |
|
| 76 |
+
__all__ = ['app']
|
| 77 |
+
|
| 78 |
+
# # We do NOT manually run uvicorn here; HF Spaces will serve the FastAPI app automatically.
|
| 79 |
+
# if __name__ == "__main__":
|
| 80 |
+
# # This pass ensures that if you run it locally (e.g., python app.py),
|
| 81 |
+
# # nothing breaks, but on Spaces it's auto-served via the 'app' object.
|
| 82 |
+
# pass
|