Spaces:
Running
Running
matdmiller
commited on
Commit
•
06719d4
1
Parent(s):
337790f
fix audio file safari
Browse files
app.ipynb
CHANGED
@@ -89,7 +89,7 @@
|
|
89 |
"outputs": [],
|
90 |
"source": [
|
91 |
"#| export\n",
|
92 |
-
"TEMP = os.environ
|
93 |
"TEMP_DIR = Path(TEMP)\n",
|
94 |
"print('TEMP Dir:', TEMP_DIR)"
|
95 |
]
|
@@ -487,7 +487,7 @@
|
|
487 |
},
|
488 |
{
|
489 |
"cell_type": "code",
|
490 |
-
"execution_count":
|
491 |
"id": "0420310d-930b-4904-8bd4-3458ad8bdbd3",
|
492 |
"metadata": {},
|
493 |
"outputs": [],
|
|
|
89 |
"outputs": [],
|
90 |
"source": [
|
91 |
"#| export\n",
|
92 |
+
"TEMP = os.environ.get('GRADIO_TEMP_DIR','/tmp/')\n",
|
93 |
"TEMP_DIR = Path(TEMP)\n",
|
94 |
"print('TEMP Dir:', TEMP_DIR)"
|
95 |
]
|
|
|
487 |
},
|
488 |
{
|
489 |
"cell_type": "code",
|
490 |
+
"execution_count": 55,
|
491 |
"id": "0420310d-930b-4904-8bd4-3458ad8bdbd3",
|
492 |
"metadata": {},
|
493 |
"outputs": [],
|
app.py
CHANGED
@@ -47,7 +47,7 @@ from tenacity import (
|
|
47 |
) # for exponential backoff
|
48 |
|
49 |
# %% app.ipynb 4
|
50 |
-
TEMP = os.environ
|
51 |
TEMP_DIR = Path(TEMP)
|
52 |
print('TEMP Dir:', TEMP_DIR)
|
53 |
|
|
|
47 |
) # for exponential backoff
|
48 |
|
49 |
# %% app.ipynb 4
|
50 |
+
TEMP = os.environ.get('GRADIO_TEMP_DIR','/tmp/')
|
51 |
TEMP_DIR = Path(TEMP)
|
52 |
print('TEMP Dir:', TEMP_DIR)
|
53 |
|