Isidorophp commited on
Commit
1cd17dc
ยท
verified ยท
1 Parent(s): 55db494

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -103,7 +103,7 @@ async def generate1(prompt):
103
 
104
 
105
 
106
- with gr.Blocks(css="style.css") 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,14 +113,14 @@ with gr.Blocks(css="style.css") 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
- demo = 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
- demo = gr.Interface(fn=generate1, inputs=user_input, outputs=output_audio)
123
 
124
  if __name__ == "__main__":
125
- demo.queue(max_size=20)
126
- demo.launch(share=True)
 
103
 
104
 
105
 
106
+ with gr.Blocks(theme=gr.themes.Default(font=[gr.themes.GoogleFont("Inconsolata"), "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, 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
+