Kangarroar commited on
Commit
f97b8b1
1 Parent(s): 882f6f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -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,6 @@ 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 = tempfile.TemporaryDirectory()
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
  ckpt = st.file_uploader("Choose your CKPT", type= 'ckpt')
66
  # Check if user uploaded a CKPT file
67
  if ckpt is not None: