Spaces:
Running on Zero
Running on Zero
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -20,7 +20,10 @@ import uuid
|
|
| 20 |
# takes the app with it ("Stopping Node.js server..." then RUNTIME_ERROR).
|
| 21 |
# Nothing here needs SSR - it is a single interactive page, not a crawlable
|
| 22 |
# site - so turn it off before gradio is imported and reads the setting.
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
import gradio as gr # noqa: E402
|
| 26 |
from dotenv import load_dotenv # noqa: E402
|
|
|
|
| 20 |
# takes the app with it ("Stopping Node.js server..." then RUNTIME_ERROR).
|
| 21 |
# Nothing here needs SSR - it is a single interactive page, not a crawlable
|
| 22 |
# site - so turn it off before gradio is imported and reads the setting.
|
| 23 |
+
#
|
| 24 |
+
# Assigned, not setdefault: Spaces sets this variable itself, so setdefault
|
| 25 |
+
# silently kept the platform's value and the proxy stayed on.
|
| 26 |
+
os.environ["GRADIO_SSR_MODE"] = "false"
|
| 27 |
|
| 28 |
import gradio as gr # noqa: E402
|
| 29 |
from dotenv import load_dotenv # noqa: E402
|