ysharma HF Staff commited on
Commit
9706c5f
·
verified ·
1 Parent(s): 8534fac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -9
app.py CHANGED
@@ -11,19 +11,21 @@ import os
11
  #/home/user/app/temp_dir
12
 
13
  # Access the environment variable
14
- #os.environ['GRADIO_TEMP_DIR'] = 'temp_dir'
15
- #gradio_temp_dir = os.environ['GRADIO_TEMP_DIR']
16
- #print(f'GRADIO_TEMP_DIR is = {gradio_temp_dir}')
 
 
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