Spaces:
Sleeping
Sleeping
ASG Models
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -178,7 +178,7 @@ with gr.Blocks() as demo: # Use gr.Blocks to wrap the entire interface
|
|
178 |
with gr.Row(): # Arrange input/output components side-by-side
|
179 |
with gr.Column():
|
180 |
text_input = gr.Textbox(label="أدخل أي نص")
|
181 |
-
user_audio = gr.Audio(label="صوت المدخل"
|
182 |
with gr.Row():
|
183 |
btn = gr.Button("إرسال")
|
184 |
btn_ai_only = gr.Button("توليد رد الذكاء الاصطناعي فقط")
|
@@ -195,8 +195,9 @@ with gr.Blocks() as demo: # Use gr.Blocks to wrap the entire interface
|
|
195 |
label="اختر النموذج",
|
196 |
value="asg2024/vits-ar-sa",
|
197 |
)
|
198 |
-
ai_audio = gr.Audio(label="رد الذكاء الاصطناعي الصوتي"
|
199 |
ai_text = gr.Textbox(label="رد الذكاء الاصطناعي النصي")
|
|
|
200 |
|
201 |
|
202 |
|
@@ -223,7 +224,7 @@ with gr.Blocks() as demo: # Use gr.Blocks to wrap the entire interface
|
|
223 |
btn_ai_only.click(
|
224 |
generate_audio_ai,
|
225 |
inputs=[text_input, model_choices],
|
226 |
-
outputs=[
|
227 |
)
|
228 |
with gr.Tab("Live "):
|
229 |
gr.Markdown("## VITS: تحويل النص إلى كلام")
|
|
|
178 |
with gr.Row(): # Arrange input/output components side-by-side
|
179 |
with gr.Column():
|
180 |
text_input = gr.Textbox(label="أدخل أي نص")
|
181 |
+
user_audio = gr.Audio(label="صوت المدخل")
|
182 |
with gr.Row():
|
183 |
btn = gr.Button("إرسال")
|
184 |
btn_ai_only = gr.Button("توليد رد الذكاء الاصطناعي فقط")
|
|
|
195 |
label="اختر النموذج",
|
196 |
value="asg2024/vits-ar-sa",
|
197 |
)
|
198 |
+
ai_audio = gr.Audio(label="رد الذكاء الاصطناعي الصوتي")
|
199 |
ai_text = gr.Textbox(label="رد الذكاء الاصطناعي النصي")
|
200 |
+
ai_audio2 = gr.Audio(label="2رد الذكاء الاصطناعي الصوتي",streaming=True)
|
201 |
|
202 |
|
203 |
|
|
|
224 |
btn_ai_only.click(
|
225 |
generate_audio_ai,
|
226 |
inputs=[text_input, model_choices],
|
227 |
+
outputs=[ai_audio2],
|
228 |
)
|
229 |
with gr.Tab("Live "):
|
230 |
gr.Markdown("## VITS: تحويل النص إلى كلام")
|