Spaces:
Configuration error
Configuration error
Kangarroar
commited on
Commit
•
d588216
1
Parent(s):
1f4a67d
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
-
def
|
3 |
-
|
|
|
|
|
|
|
|
|
4 |
demo = gr.Blocks()
|
5 |
with demo:
|
6 |
gr.Markdown("# **<p align='center'>DIFF-SVC Inference</p>**")
|
@@ -13,6 +17,7 @@ with demo:
|
|
13 |
"""
|
14 |
)
|
15 |
gr.File(label= 'Load your CKPT')
|
|
|
16 |
|
17 |
audio_file = gr.Audio(label = 'Load your WAV', type="filepath")
|
18 |
gr.Slider(2, 20, value=4)
|
|
|
1 |
import gradio as gr
|
2 |
+
def get_model_path():
|
3 |
+
model_file = gr.File(label='Load your CKPT')
|
4 |
+
model_path = model_file.input
|
5 |
+
return model_path
|
6 |
+
|
7 |
+
model_path = get_model_path()
|
8 |
demo = gr.Blocks()
|
9 |
with demo:
|
10 |
gr.Markdown("# **<p align='center'>DIFF-SVC Inference</p>**")
|
|
|
17 |
"""
|
18 |
)
|
19 |
gr.File(label= 'Load your CKPT')
|
20 |
+
gr.File(label= 'Load your Config File')
|
21 |
|
22 |
audio_file = gr.Audio(label = 'Load your WAV', type="filepath")
|
23 |
gr.Slider(2, 20, value=4)
|