KingNish commited on
Commit
f0a69b8
1 Parent(s): cb2ad62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -78,15 +78,12 @@ 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="User", sources="microphone", type="filepath", waveform_options=False)
82
- output = gr.Audio(label="AI", type="filepath",
83
- interactive=False,
84
- autoplay=True,
85
- elem_classes="audio")
86
  gr.Interface(
87
  fn=respond,
88
  inputs=[input, select],
89
- outputs=[output], api_name="translate", live=True)
90
 
91
  # Live chat block
92
  with gr.Blocks() as livechat:
 
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: