Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -281,7 +281,7 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue="pink", secondary_hue="rose"), t
|
|
| 281 |
gr.Markdown("# Ilaria RVC 💖")
|
| 282 |
gr.Markdown("**Help keeping up the GPU donating on [Ko-Fi](https://ko-fi.com/ilariaowo)**")
|
| 283 |
with gr.Tab("Inference"):
|
| 284 |
-
|
| 285 |
def update():
|
| 286 |
print(MODELS)
|
| 287 |
return gr.Dropdown(label="Model",choices=[model["model_name"] for model in MODELS],visible=True,interactive=True, value=MODELS[0]["model_name"],)
|
|
@@ -290,6 +290,8 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue="pink", secondary_hue="rose"), t
|
|
| 290 |
refresh_button = gr.Button("Refresh Models")
|
| 291 |
refresh_button.click(update, outputs=[models_dropdown])
|
| 292 |
|
|
|
|
|
|
|
| 293 |
with gr.Accordion("Ilaria TTS", open=False):
|
| 294 |
text_tts = gr.Textbox(label="Text", placeholder="Hello!", lines=3, interactive=True,)
|
| 295 |
dropdown_tts = gr.Dropdown(label="Language and Model",choices=list(language_dict.keys()),interactive=True, value=list(language_dict.keys())[0])
|
|
|
|
| 281 |
gr.Markdown("# Ilaria RVC 💖")
|
| 282 |
gr.Markdown("**Help keeping up the GPU donating on [Ko-Fi](https://ko-fi.com/ilariaowo)**")
|
| 283 |
with gr.Tab("Inference"):
|
| 284 |
+
|
| 285 |
def update():
|
| 286 |
print(MODELS)
|
| 287 |
return gr.Dropdown(label="Model",choices=[model["model_name"] for model in MODELS],visible=True,interactive=True, value=MODELS[0]["model_name"],)
|
|
|
|
| 290 |
refresh_button = gr.Button("Refresh Models")
|
| 291 |
refresh_button.click(update, outputs=[models_dropdown])
|
| 292 |
|
| 293 |
+
sound_gui = gr.Audio(value=None,type="filepath",autoplay=False,visible=True,)
|
| 294 |
+
|
| 295 |
with gr.Accordion("Ilaria TTS", open=False):
|
| 296 |
text_tts = gr.Textbox(label="Text", placeholder="Hello!", lines=3, interactive=True,)
|
| 297 |
dropdown_tts = gr.Dropdown(label="Language and Model",choices=list(language_dict.keys()),interactive=True, value=list(language_dict.keys())[0])
|