Isidorophp commited on
Commit
bb17144
Β·
verified Β·
1 Parent(s): 7c6d95b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -101,9 +101,9 @@ async def generate1(prompt):
101
  await communicate.save(tmp_path)
102
  yield tmp_path
103
 
104
- # font=[gr.themes.GoogleFont("Quicksand"), "Arial", "Arial"]
105
 
106
- with gr.Blocks(gr.themes.Ocean()) as demo:
 
107
 
108
  gr.HTML(""" <img src='https://huggingface.co/spaces/Isidorophp/Executive-Assistant/resolve/main/logo.png' alt='RJP DEV STUDIO logo' style='height:60px'> """
109
  """ <center> <h1> I am Sonia πŸ‘±πŸΎβ€β™€οΈ your Unique Executive Assistant. </h1></center> """
@@ -113,16 +113,13 @@ with gr.Blocks(gr.themes.Ocean()) as demo:
113
  with gr.Group():
114
  us_input = gr.Audio(label="Your Voice Chat", type="filepath", interactive=True, sources="microphone", scale=3, waveform_options=gr.WaveformOptions(show_recording_waveform=False), container=True )
115
  us_output = gr.Audio(label="Sonia's Response", type="filepath", interactive=False, autoplay=True, scale=3, elem_classes="audio", waveform_options=gr.WaveformOptions(show_recording_waveform=False), container=True )
116
- gr.Interface(fn=respond, inputs=us_input, outputs=us_output, live=False)
117
 
118
  with gr.Tab("Write to Sonia"):
119
  with gr.Group():
120
  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.")
121
  output_audio = gr.Audio(label="Sonia's Response", scale=3, type="filepath", interactive=False, autoplay=True, elem_classes="audio", waveform_options=gr.WaveformOptions(show_recording_waveform=False), container=True )
122
- gr.Interface(fn=generate1, inputs=user_input, outputs=output_audio, live=False)
123
 
124
  if __name__ == "__main__":
125
  demo.queue(max_size=200, api_open=False).launch()
126
-
127
- # demo.queue(default_concurrency_limit=100, max_size=100).launch(max_threads=100, ssr_mode=False) or launch(show_api=False)
128
-
 
101
  await communicate.save(tmp_path)
102
  yield tmp_path
103
 
 
104
 
105
+
106
+ with gr.Blocks(gr.themes.Glass(font=[gr.themes.GoogleFont("Quicksand"), "Arial", "Arial"]) as demo:
107
 
108
  gr.HTML(""" <img src='https://huggingface.co/spaces/Isidorophp/Executive-Assistant/resolve/main/logo.png' alt='RJP DEV STUDIO logo' style='height:60px'> """
109
  """ <center> <h1> I am Sonia πŸ‘±πŸΎβ€β™€οΈ your Unique Executive Assistant. </h1></center> """
 
113
  with gr.Group():
114
  us_input = gr.Audio(label="Your Voice Chat", type="filepath", interactive=True, sources="microphone", scale=3, waveform_options=gr.WaveformOptions(show_recording_waveform=False), container=True )
115
  us_output = gr.Audio(label="Sonia's Response", type="filepath", interactive=False, autoplay=True, scale=3, elem_classes="audio", waveform_options=gr.WaveformOptions(show_recording_waveform=False), container=True )
116
+ gr.Interface(fn=respond, inputs=us_input, outputs=us_output)
117
 
118
  with gr.Tab("Write to Sonia"):
119
  with gr.Group():
120
  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.")
121
  output_audio = gr.Audio(label="Sonia's Response", scale=3, type="filepath", interactive=False, autoplay=True, elem_classes="audio", waveform_options=gr.WaveformOptions(show_recording_waveform=False), container=True )
122
+ gr.Interface(fn=generate1, inputs=user_input, outputs=output_audio)
123
 
124
  if __name__ == "__main__":
125
  demo.queue(max_size=200, api_open=False).launch()