Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
no sys path append
Browse files- app.py +8 -0
- resources/app/no_server.py +1 -1
app.py
CHANGED
@@ -9,6 +9,14 @@ from huggingface_hub import hf_hub_download
|
|
9 |
import gradio as gr
|
10 |
import resources.app.no_server as xvaserver
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
hf_model_name = "Pendrokar/xvapitch_nvidia"
|
13 |
hf_cache_models_path = '/home/user/.cache/huggingface/hub/models--Pendrokar--xvapitch_nvidia/snapshots/61b10e60b22bc21c1e072f72f1108b9c2b21e94c/'
|
14 |
models_path = '/home/user/.cache/huggingface/hub/models--Pendrokar--xvapitch_nvidia/snapshots/61b10e60b22bc21c1e072f72f1108b9c2b21e94c/'
|
|
|
9 |
import gradio as gr
|
10 |
import resources.app.no_server as xvaserver
|
11 |
|
12 |
+
try:
|
13 |
+
import resources.app.no_server as xvaserver
|
14 |
+
except:
|
15 |
+
print('server.log contents:')
|
16 |
+
with open('resources/app/server.log', 'r') as f:
|
17 |
+
print(f.read())
|
18 |
+
|
19 |
+
|
20 |
hf_model_name = "Pendrokar/xvapitch_nvidia"
|
21 |
hf_cache_models_path = '/home/user/.cache/huggingface/hub/models--Pendrokar--xvapitch_nvidia/snapshots/61b10e60b22bc21c1e072f72f1108b9c2b21e94c/'
|
22 |
models_path = '/home/user/.cache/huggingface/hub/models--Pendrokar--xvapitch_nvidia/snapshots/61b10e60b22bc21c1e072f72f1108b9c2b21e94c/'
|
resources/app/no_server.py
CHANGED
@@ -10,7 +10,7 @@ multiprocessing.freeze_support()
|
|
10 |
|
11 |
# PROD = 'xVASynth.exe' in os.listdir(".")
|
12 |
PROD = True
|
13 |
-
sys.path.append("./resources/app")
|
14 |
|
15 |
# Saves me having to do backend re-compilations for every little UI hotfix
|
16 |
with open(f'{"./resources/app" if PROD else "."}/javascript/script.js', encoding="utf8") as f:
|
|
|
10 |
|
11 |
# PROD = 'xVASynth.exe' in os.listdir(".")
|
12 |
PROD = True
|
13 |
+
# sys.path.append("./resources/app")
|
14 |
|
15 |
# Saves me having to do backend re-compilations for every little UI hotfix
|
16 |
with open(f'{"./resources/app" if PROD else "."}/javascript/script.js', encoding="utf8") as f:
|