Kangarroar commited on
Commit
e4b9503
1 Parent(s): cce8b99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,7 +8,7 @@ import tempfile
8
  import shutil
9
  import requests
10
  from pathlib import Path
11
- temp_dir = os.path.expanduser("~/app")
12
  global ckpt_temp_file
13
  global audio_temp_file
14
  global config_temp_file
@@ -62,7 +62,7 @@ st.set_page_config(
62
  st.title('DIFF-SVC Render')
63
 
64
  ###CKPT LOADER
65
- with tempfile.TemporaryDirectory(dir=os.path.expanduser("~/app")) as temp_dir:
66
  ckpt = st.file_uploader("Choose your CKPT", type= 'ckpt')
67
  # Check if user uploaded a CKPT file
68
  if ckpt is not None:
 
8
  import shutil
9
  import requests
10
  from pathlib import Path
11
+ temp_dir = os.path.expanduser("/~app")
12
  global ckpt_temp_file
13
  global audio_temp_file
14
  global config_temp_file
 
62
  st.title('DIFF-SVC Render')
63
 
64
  ###CKPT LOADER
65
+ with tempfile.TemporaryDirectory(dir=os.path.expanduser("/~app")) as temp_dir:
66
  ckpt = st.file_uploader("Choose your CKPT", type= 'ckpt')
67
  # Check if user uploaded a CKPT file
68
  if ckpt is not None: