Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,19 +11,21 @@ import os
|
|
11 |
#/home/user/app/temp_dir
|
12 |
|
13 |
# Access the environment variable
|
14 |
-
|
15 |
-
|
16 |
-
|
|
|
|
|
17 |
|
18 |
-
current_directory = os.getcwd()
|
19 |
-
print(f'current_directory is = {current_directory}')
|
20 |
-
new_directory_name = 'temp_dir' #os.environ['GRADIO_TEMP_DIR']
|
21 |
|
22 |
# Constructing the path to the new directory
|
23 |
-
new_directory_path = os.path.join(current_directory, new_directory_name)
|
24 |
-
print(f"The path to the new directory is: {new_directory_path}")
|
25 |
|
26 |
-
os.environ['GRADIO_TEMP_DIR'] = new_directory_path
|
27 |
|
28 |
######
|
29 |
|
|
|
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']
|
23 |
|
24 |
# Constructing the path to the new directory
|
25 |
+
#new_directory_path = os.path.join(current_directory, new_directory_name)
|
26 |
+
#print(f"The path to the new directory is: {new_directory_path}")
|
27 |
|
28 |
+
#os.environ['GRADIO_TEMP_DIR'] = new_directory_path
|
29 |
|
30 |
######
|
31 |
|