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