Spaces:
Configuration error
Configuration error
Commit
·
eb2d1d3
1
Parent(s):
49cf03c
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
def segment(audio):
|
| 3 |
+
pass # Implement your image segmentation model here...
|
| 4 |
+
demo = gr.Blocks()
|
| 5 |
+
with demo:
|
| 6 |
+
gr.Markdown("# **<p align='center'>DIFF-SVC Inference</p>**")
|
| 7 |
+
|
| 8 |
+
gr.Markdown(
|
| 9 |
+
"""
|
| 10 |
+
<p style='text-align: center'>
|
| 11 |
+
Render whatever model you want with this space!
|
| 12 |
+
</p>
|
| 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)
|
| 19 |
+
b1 = gr.Button("Render")
|
| 20 |
+
#b1.click(speech_to_text, inputs=audio_file, outputs=text)
|
| 21 |
+
demo.launch(share=True)
|