ysharma HF Staff commited on
Commit
2a84b62
·
verified ·
1 Parent(s): 057b04c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -4,15 +4,15 @@ from PIL import Image
4
  import os
5
 
6
  # Assuming 'my_directory' is a directory in the current working directory
7
- directory_name = 'temp_dir'
8
- absolute_path1 = os.path.abspath(directory_name)
9
- print(f"The absolute path of '{directory_name}' is: {absolute_path1}")
 
10
 
11
  # Access the environment variable
 
12
  print(os.environ['GRADIO_TEMP_DIR'])
13
- dir1 = os.environ['GRADIO_TEMP_DIR']
14
- absolute_path1 = os.path.abspath(dir1)
15
- print(f"The absolute path of (from ENV VAR) '{dir1}' is: {absolute_path1}")
16
 
17
 
18
  def create():
 
4
  import os
5
 
6
  # Assuming 'my_directory' is a directory in the current working directory
7
+ #directory_name = 'temp_dir'
8
+ #absolute_path1 = os.path.abspath(directory_name)
9
+ #print(f"The absolute path of '{directory_name}' is: {absolute_path1}")
10
+ #/home/user/app/temp_dir
11
 
12
  # Access the environment variable
13
+ os.environ['GRADIO_TEMP_DIR'] = 'temp_dir'
14
  print(os.environ['GRADIO_TEMP_DIR'])
15
+
 
 
16
 
17
 
18
  def create():