ASG Models commited on
Commit
4ad81f7
·
verified ·
1 Parent(s): d25ca24

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -67,7 +67,7 @@ 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
  panal_1 = gr.Interface(
72
  fn=reverse_audio,
73
  inputs=[text_input,model_choices],
@@ -81,7 +81,7 @@ panal_2 = gr.Interface(
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()
 
67
  text_answer=remove_extra_spaces(text_answer)
68
  dataa = query(text_answer,API_URL)
69
  return dataa
70
+ demo = gr.Blocks()
71
  panal_1 = gr.Interface(
72
  fn=reverse_audio,
73
  inputs=[text_input,model_choices],
 
81
  outputs=[ai_audio],
82
  # title=" محادثة صوتية بالذكاء الاصطناعي باللهجة السعودية "
83
  )
84
+ with demo:
85
+ gr.TabbedInterface([panal_1, panal_2],['panal_1', 'panal_2'])
86
 
87
+ demo.queue().launch()