Spaces:
Running
on
Zero
Running
on
Zero
viklofg
commited on
Commit
·
19cd755
1
Parent(s):
5cabe30
Set cache dir
Browse filesAs the warning claims!
- app/tabs/submit.py +1 -0
app/tabs/submit.py
CHANGED
@@ -44,6 +44,7 @@ GRADIO_CACHE = ".gradio_cache"
|
|
44 |
EXAMPLES_DIRECTORY = os.path.join(GRADIO_CACHE, "examples")
|
45 |
|
46 |
if os.environ.get("GRADIO_CACHE_DIR", GRADIO_CACHE) != GRADIO_CACHE:
|
|
|
47 |
logger.warning("Setting GRADIO_CACHE_DIR to '%s' (overriding a previous value).")
|
48 |
|
49 |
|
|
|
44 |
EXAMPLES_DIRECTORY = os.path.join(GRADIO_CACHE, "examples")
|
45 |
|
46 |
if os.environ.get("GRADIO_CACHE_DIR", GRADIO_CACHE) != GRADIO_CACHE:
|
47 |
+
os.environ["GRADIO_CACHE_DIR"] = GRADIO_CACHE
|
48 |
logger.warning("Setting GRADIO_CACHE_DIR to '%s' (overriding a previous value).")
|
49 |
|
50 |
|