Spaces:
Build error
Build error
Added Korean
Browse files
app.py
CHANGED
|
@@ -52,6 +52,12 @@ language_config = {
|
|
| 52 |
"model": "simba-multilingual",
|
| 53 |
"audio_format": "mp3"
|
| 54 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
}
|
| 56 |
|
| 57 |
def chat_and_speak(user_input, language_choice, history):
|
|
@@ -140,7 +146,7 @@ with gr.Blocks(css=custom_css) as demo:
|
|
| 140 |
with gr.Column():
|
| 141 |
user_input = gr.Textbox(label="Type in whatever language you prefer", placeholder="Type here...", lines=4)
|
| 142 |
language_choice = gr.Dropdown(
|
| 143 |
-
choices=["Portuguese", "French", "Spanish"],
|
| 144 |
value="Portuguese",
|
| 145 |
label="Language"
|
| 146 |
)
|
|
|
|
| 52 |
"model": "simba-multilingual",
|
| 53 |
"audio_format": "mp3"
|
| 54 |
},
|
| 55 |
+
"Korean": {
|
| 56 |
+
"voice_id": "yoon-jung",
|
| 57 |
+
"language": "ko-KR",
|
| 58 |
+
"model": "simba-multilingual",
|
| 59 |
+
"audio_format": "mp3"
|
| 60 |
+
},
|
| 61 |
}
|
| 62 |
|
| 63 |
def chat_and_speak(user_input, language_choice, history):
|
|
|
|
| 146 |
with gr.Column():
|
| 147 |
user_input = gr.Textbox(label="Type in whatever language you prefer", placeholder="Type here...", lines=4)
|
| 148 |
language_choice = gr.Dropdown(
|
| 149 |
+
choices=["Portuguese", "French", "Spanish", "Korean"],
|
| 150 |
value="Portuguese",
|
| 151 |
label="Language"
|
| 152 |
)
|