KingNish commited on
Commit
6698672
1 Parent(s): 1f0d2e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -76,14 +76,9 @@ with gr.Blocks(
76
  # Voice chat block
77
  with gr.Blocks() as voice:
78
  with gr.Row():
79
- select = gr.Dropdown(['Nous Hermes Mixtral 8x7B DPO', 'Mixtral 8x7B', 'StarChat2 15b', 'Mistral 7B v0.3',
80
- 'Phi 3 mini', 'Zephyr 7b'], value="Mistral 7B v0.3", label="Select Model")
81
  input = gr.Audio(label="Voice Chat (BETA)", sources="microphone", type="filepath", waveform_options=False)
82
  output = gr.Audio(label="JARVIS", type="filepath", interactive=False, autoplay=True, elem_classes="audio")
83
- gr.Interface(
84
- fn=respond,
85
- inputs=[input, select],
86
- outputs=[output], api_name="transcribe", live=True)
87
 
88
  # Live chat block
89
  with gr.Blocks() as livechat:
 
76
  # Voice chat block
77
  with gr.Blocks() as voice:
78
  with gr.Row():
 
 
79
  input = gr.Audio(label="Voice Chat (BETA)", sources="microphone", type="filepath", waveform_options=False)
80
  output = gr.Audio(label="JARVIS", type="filepath", interactive=False, autoplay=True, elem_classes="audio")
81
+ gr.Interface(fn=respond, inputs=[input], outputs=[output], live=True)
 
 
 
82
 
83
  # Live chat block
84
  with gr.Blocks() as livechat: