Spaces:
Sleeping
Sleeping
ASG Models
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -67,21 +67,21 @@ def reverse_audio_2(text,model_choice):
|
|
67 |
text_answer=remove_extra_spaces(text_answer)
|
68 |
dataa = query(text_answer,API_URL)
|
69 |
return dataa
|
70 |
-
|
71 |
-
|
72 |
fn=reverse_audio,
|
73 |
inputs=[text_input,model_choices],
|
74 |
outputs=[user_audio,ai_audio,ai_text],
|
75 |
-
|
76 |
)
|
77 |
|
78 |
-
panal_2 = gr.Interface(
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
)
|
84 |
-
with demo:
|
85 |
-
gr.TabbedInterface([panal_1, panal_2],['panal_1', 'panal_2'])
|
86 |
|
87 |
-
demo.
|
|
|
|
|
|
67 |
text_answer=remove_extra_spaces(text_answer)
|
68 |
dataa = query(text_answer,API_URL)
|
69 |
return dataa
|
70 |
+
|
71 |
+
demo = gr.Interface(
|
72 |
fn=reverse_audio,
|
73 |
inputs=[text_input,model_choices],
|
74 |
outputs=[user_audio,ai_audio,ai_text],
|
75 |
+
title=" محادثة صوتية بالذكاء الاصطناعي باللهجة السعودية "
|
76 |
)
|
77 |
|
78 |
+
# panal_2 = gr.Interface(
|
79 |
+
# fn=reverse_audio_2,
|
80 |
+
# inputs=[text_input,model_choices],
|
81 |
+
# outputs=[ai_audio],
|
82 |
+
# title=" محادثة صوتية بالذكاء الاصطناعي باللهجة السعودية "
|
83 |
+
# )
|
|
|
|
|
84 |
|
85 |
+
# demo = gr.TabbedInterface([panal_1, panal_2],['panal_1', 'panal_2'])
|
86 |
+
if __name__ == "__main__":
|
87 |
+
demo.launch()
|