Kangarroar's picture
Update app.py
d588216
raw
history blame
720 Bytes
import gradio as gr
def get_model_path():
model_file = gr.File(label='Load your CKPT')
model_path = model_file.input
return model_path
model_path = get_model_path()
demo = gr.Blocks()
with demo:
gr.Markdown("# **<p align='center'>DIFF-SVC Inference</p>**")
gr.Markdown(
"""
<p style='text-align: center'>
Render whatever model you want with this space!
</p>
"""
)
gr.File(label= 'Load your CKPT')
gr.File(label= 'Load your Config File')
audio_file = gr.Audio(label = 'Load your WAV', type="filepath")
gr.Slider(2, 20, value=4)
b1 = gr.Button("Render")
#b1.click(speech_to_text, inputs=audio_file, outputs=text)
demo.launch()