Spaces:
Runtime error
Runtime error
ASG Models
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -157,7 +157,8 @@ def get_answer_ai(text):
|
|
| 157 |
return response.text
|
| 158 |
|
| 159 |
with gr.Blocks() as demo: # Use gr.Blocks to wrap the entire interface
|
| 160 |
-
with gr.Tab("
|
|
|
|
| 161 |
with gr.Row(): # Arrange input/output components side-by-side
|
| 162 |
with gr.Column():
|
| 163 |
text_input = gr.Textbox(label="أدخل أي نص")
|
|
@@ -208,7 +209,7 @@ with gr.Blocks() as demo: # Use gr.Blocks to wrap the entire interface
|
|
| 208 |
inputs=[text_input, model_choices],
|
| 209 |
outputs=[ai_audio],
|
| 210 |
)
|
| 211 |
-
with gr.Tab("Live
|
| 212 |
gr.Markdown("## VITS: تحويل النص إلى كلام")
|
| 213 |
with gr.Row():
|
| 214 |
text_input = gr.Textbox(label="أدخل النص هنا")
|
|
|
|
| 157 |
return response.text
|
| 158 |
|
| 159 |
with gr.Blocks() as demo: # Use gr.Blocks to wrap the entire interface
|
| 160 |
+
with gr.Tab("Chat AI "):
|
| 161 |
+
gr.Markdown("## AI: محادثة صوتية بالذكاء الاصطناعي باللهجة السعودية")
|
| 162 |
with gr.Row(): # Arrange input/output components side-by-side
|
| 163 |
with gr.Column():
|
| 164 |
text_input = gr.Textbox(label="أدخل أي نص")
|
|
|
|
| 209 |
inputs=[text_input, model_choices],
|
| 210 |
outputs=[ai_audio],
|
| 211 |
)
|
| 212 |
+
with gr.Tab("Live "):
|
| 213 |
gr.Markdown("## VITS: تحويل النص إلى كلام")
|
| 214 |
with gr.Row():
|
| 215 |
text_input = gr.Textbox(label="أدخل النص هنا")
|