YugJ commited on
Commit
a9a0f14
·
verified ·
1 Parent(s): aeb648b

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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
- os.environ.setdefault("GRADIO_SSR_MODE", "false")
 
 
 
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