Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
load default model only on startup
Browse files
app.py
CHANGED
@@ -35,6 +35,9 @@ def run_xvaserver():
|
|
35 |
|
36 |
print('xVAServer running on port 8008')
|
37 |
|
|
|
|
|
|
|
38 |
# Wait for the process to exit
|
39 |
xvaserver.wait()
|
40 |
|
@@ -70,7 +73,7 @@ def load_model():
|
|
70 |
def predict(input_text, pacing):
|
71 |
|
72 |
# reload model just in case
|
73 |
-
load_model()
|
74 |
|
75 |
model_type = 'xVAPitch'
|
76 |
pace = pacing if pacing else 1.0
|
@@ -123,7 +126,7 @@ gradio_app = gr.Interface(
|
|
123 |
# examples=[
|
124 |
# ["Once, I headed in much deeper. But I doubt I'll ever do that again.", 1],
|
125 |
# ["You love hurting me, huh?", 1.5],
|
126 |
-
# ["Ah
|
127 |
# ["Embrace your demise!", 1],
|
128 |
# ["Never come back!", 1]
|
129 |
# ],
|
|
|
35 |
|
36 |
print('xVAServer running on port 8008')
|
37 |
|
38 |
+
# load default model
|
39 |
+
load_model()
|
40 |
+
|
41 |
# Wait for the process to exit
|
42 |
xvaserver.wait()
|
43 |
|
|
|
73 |
def predict(input_text, pacing):
|
74 |
|
75 |
# reload model just in case
|
76 |
+
# load_model()
|
77 |
|
78 |
model_type = 'xVAPitch'
|
79 |
pace = pacing if pacing else 1.0
|
|
|
126 |
# examples=[
|
127 |
# ["Once, I headed in much deeper. But I doubt I'll ever do that again.", 1],
|
128 |
# ["You love hurting me, huh?", 1.5],
|
129 |
+
# ["Ah, I see. Well, I'm afraid I can't help with that.", 1],
|
130 |
# ["Embrace your demise!", 1],
|
131 |
# ["Never come back!", 1]
|
132 |
# ],
|