Spaces:
Configuration error
Configuration error
Kangarroar
commited on
Commit
•
2ea2c52
1
Parent(s):
f6ffbcf
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import tempfile
|
|
7 |
import shutil
|
8 |
import requests
|
9 |
from pathlib import Path
|
10 |
-
temp_dir =
|
11 |
global ckpt_temp_file
|
12 |
global audio_temp_file
|
13 |
global config_temp_file
|
@@ -62,11 +62,8 @@ st.set_page_config(
|
|
62 |
st.title('DIFF-SVC Render')
|
63 |
|
64 |
###CKPT LOADER
|
65 |
-
# Create the temporary directory in the desired location
|
66 |
with tempfile.TemporaryDirectory(dir=os.path.expanduser("~/app")) as temp_dir:
|
67 |
-
# File uploader
|
68 |
ckpt = st.file_uploader("Choose your CKPT", type= 'ckpt')
|
69 |
-
|
70 |
# Check if user uploaded a CKPT file
|
71 |
if ckpt is not None:
|
72 |
#TEMP FUNCTION
|
|
|
7 |
import shutil
|
8 |
import requests
|
9 |
from pathlib import Path
|
10 |
+
temp_dir = os.path.expanduser("~/app")
|
11 |
global ckpt_temp_file
|
12 |
global audio_temp_file
|
13 |
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:
|
69 |
#TEMP FUNCTION
|