Isidorophp commited on
Commit
f5733a4
Β·
verified Β·
1 Parent(s): cc6b459

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -102,18 +102,16 @@ with gr.Blocks(gr.themes.Glass()) as demo:
102
  """ <center> <h3> Always ready to help you, talk to me. πŸ‘„ </h3></center> """)
103
 
104
  with gr.Tab("Talk to Sonia"):
105
- with gr.Row():
106
  us_input = gr.Audio(label="Your Voice Chat", type="filepath", interactive=True, sources="microphone", scale=1, waveform_options=None, )
107
  us_output = gr.Audio(label="Sonia's Response", type="filepath", interactive=False, autoplay=True, scale=1, elem_classes="audio", )
108
  gr.Interface(fn=respond, inputs=us_input, outputs=us_output, live=False)
109
 
110
  with gr.Tab("Write to Sonia"):
111
- with gr.Row():
112
  user_input = gr.TextArea(label="Your Question", scale=1, show_copy_button=True, value="What are the key considerations for implementing an expansion plan that would affect a large number of employees of a global biomedical company, My position is logistics global Manager professional in inventory management and supply chain within a biotech industry, particularly in cell therapy. The key responsibilities include managing end-to-end logistics and lab implementation over a dispersed geographical area. generate new programs, develop MRP processes, collaborate with various departments, and ensure compliance with GMP standards. I have several years of practical experience, strong analytical skills, and the ability to work collaboratively in a dynamic environment. Bonus qualifications include experience with cold chain logistics and autologous cell therapy.")
113
  output_audio = gr.Audio(label="Sonia's Response", scale=1, type="filepath", interactive=False, autoplay=True, elem_classes="audio",)
114
- with gr.Row():
115
- translate_btn = gr.Button("Submit", scale=1)
116
- translate_btn.click(fn=generate1, inputs=user_input, outputs=output_audio, api_name="translate")
117
 
118
  if __name__ == "__main__":
119
- demo.queue(max_size=400, api_open=False).launch()
 
102
  """ <center> <h3> Always ready to help you, talk to me. πŸ‘„ </h3></center> """)
103
 
104
  with gr.Tab("Talk to Sonia"):
105
+ with gr.Group():
106
  us_input = gr.Audio(label="Your Voice Chat", type="filepath", interactive=True, sources="microphone", scale=1, waveform_options=None, )
107
  us_output = gr.Audio(label="Sonia's Response", type="filepath", interactive=False, autoplay=True, scale=1, elem_classes="audio", )
108
  gr.Interface(fn=respond, inputs=us_input, outputs=us_output, live=False)
109
 
110
  with gr.Tab("Write to Sonia"):
111
+ with gr.Group():
112
  user_input = gr.TextArea(label="Your Question", scale=1, show_copy_button=True, value="What are the key considerations for implementing an expansion plan that would affect a large number of employees of a global biomedical company, My position is logistics global Manager professional in inventory management and supply chain within a biotech industry, particularly in cell therapy. The key responsibilities include managing end-to-end logistics and lab implementation over a dispersed geographical area. generate new programs, develop MRP processes, collaborate with various departments, and ensure compliance with GMP standards. I have several years of practical experience, strong analytical skills, and the ability to work collaboratively in a dynamic environment. Bonus qualifications include experience with cold chain logistics and autologous cell therapy.")
113
  output_audio = gr.Audio(label="Sonia's Response", scale=1, type="filepath", interactive=False, autoplay=True, elem_classes="audio",)
114
+ gr.Interface(fn=generate1, inputs=user_input, outputs=output_audio, live=False)
 
 
115
 
116
  if __name__ == "__main__":
117
+ demo.queue(max_size=200, api_open=False).launch()