Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -11,12 +11,14 @@ import os
|
|
11 |
#/home/user/app/temp_dir
|
12 |
|
13 |
# Access the environment variable
|
14 |
-
os.environ['GRADIO_TEMP_DIR'] = '/data
|
15 |
gradio_temp_dir = os.environ['GRADIO_TEMP_DIR']
|
16 |
print(f'GRADIO_TEMP_DIR is = {gradio_temp_dir}')
|
17 |
absolute_path1 = os.path.abspath(gradio_temp_dir)
|
18 |
print(f"The absolute path of gradio_temp_dir is = {absolute_path1}")
|
19 |
|
|
|
|
|
20 |
#current_directory = os.getcwd()
|
21 |
#print(f'current_directory is = {current_directory}')
|
22 |
#new_directory_name = 'temp_dir' #os.environ['GRADIO_TEMP_DIR']
|
|
|
11 |
#/home/user/app/temp_dir
|
12 |
|
13 |
# Access the environment variable
|
14 |
+
os.environ['GRADIO_TEMP_DIR'] = '/data'
|
15 |
gradio_temp_dir = os.environ['GRADIO_TEMP_DIR']
|
16 |
print(f'GRADIO_TEMP_DIR is = {gradio_temp_dir}')
|
17 |
absolute_path1 = os.path.abspath(gradio_temp_dir)
|
18 |
print(f"The absolute path of gradio_temp_dir is = {absolute_path1}")
|
19 |
|
20 |
+
#os.makedirs('/data', exist_ok=True)
|
21 |
+
|
22 |
#current_directory = os.getcwd()
|
23 |
#print(f'current_directory is = {current_directory}')
|
24 |
#new_directory_name = 'temp_dir' #os.environ['GRADIO_TEMP_DIR']
|