heliosbrahma commited on
Commit
dcf13a8
·
1 Parent(s): df7cd85

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -3
main.py CHANGED
@@ -36,14 +36,16 @@ def voice_chat(api_key, user_voice):
36
 
37
  # run_ffmpeg_command()
38
  text_reply = gr.Textbox(label="Summarized Answer")
39
- voice_reply = gr.Audio(type="filepath")
40
 
41
  gr.Interface(
42
- title = 'Smart Voice Assistant',
 
 
43
  fn=voice_chat,
44
  inputs=[
45
  gr.Textbox(label="OpenAI API Key"),
46
- gr.Audio(source="microphone", type="filepath")
47
 
48
  ],
49
  outputs=[
 
36
 
37
  # run_ffmpeg_command()
38
  text_reply = gr.Textbox(label="Summarized Answer")
39
+ voice_reply = gr.Audio(label="Output Speech", type="filepath")
40
 
41
  gr.Interface(
42
+ title = 'Smart Voice Assistant',
43
+ description = 'Use this gradio app interface to get answers for all your queries in both text and speech format. \
44
+ Just communicate your queries in speech format and this app will take care of the rest.'
45
  fn=voice_chat,
46
  inputs=[
47
  gr.Textbox(label="OpenAI API Key"),
48
+ gr.Audio(source="microphone", label="Input Voice", type="filepath")
49
 
50
  ],
51
  outputs=[