Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -240,7 +240,7 @@ def bot(history,message):
|
|
240 |
if message["text"] is not None:
|
241 |
txt_ai=get_answer_ai(message["text"] )
|
242 |
history[-1][1]=txt_ai#((None,txt_ai))
|
243 |
-
response_audio = genrate_speech(txt_ai,'wasmdashai/vits-ar-sa-
|
244 |
history.append((None,gr.Audio(response_audio,scale=1,streaming=True)))
|
245 |
|
246 |
return history, gr.MultimodalTextbox(value=None, interactive=False)
|
@@ -287,7 +287,7 @@ with gr.Blocks() as demo: # Use gr.Blocks to wrap the entire interface
|
|
287 |
"wasmdashai/vits-ar-sa",
|
288 |
"wasmdashai/vits-ar-sa-huba",
|
289 |
"wasmdashai/vits-ar-sa-ms",
|
290 |
-
"wasmdashai/vits-ar-sa-
|
291 |
"wasmdashai/vits-ar-sa-fahd",
|
292 |
],
|
293 |
label="اختر النموذج",
|
|
|
240 |
if message["text"] is not None:
|
241 |
txt_ai=get_answer_ai(message["text"] )
|
242 |
history[-1][1]=txt_ai#((None,txt_ai))
|
243 |
+
response_audio = genrate_speech(txt_ai,'wasmdashai/vits-ar-sa-A')
|
244 |
history.append((None,gr.Audio(response_audio,scale=1,streaming=True)))
|
245 |
|
246 |
return history, gr.MultimodalTextbox(value=None, interactive=False)
|
|
|
287 |
"wasmdashai/vits-ar-sa",
|
288 |
"wasmdashai/vits-ar-sa-huba",
|
289 |
"wasmdashai/vits-ar-sa-ms",
|
290 |
+
"wasmdashai/vits-ar-sa-A",
|
291 |
"wasmdashai/vits-ar-sa-fahd",
|
292 |
],
|
293 |
label="اختر النموذج",
|