heliosbrahma commited on
Commit
8c57a3b
·
1 Parent(s): e0d0a16

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -4
main.py CHANGED
@@ -35,13 +35,12 @@ def voice_chat(api_key, user_voice):
35
  return(reply, "output.wav")
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"),
@@ -49,5 +48,6 @@ gr.Interface(
49
 
50
  ],
51
  outputs=[
52
- text_reply, voice_reply
 
53
  ]).launch()
 
35
  return(reply, "output.wav")
36
 
37
  # run_ffmpeg_command()
38
+
 
 
39
  gr.Interface(
40
  title = 'Smart Voice Assistant',
41
  description = 'Use this gradio app interface to get answers for all your queries in both text and speech format. \
42
  Just communicate your queries in speech format and this app will take care of the rest.',
43
+ theme='darkhuggingface',
44
  fn=voice_chat,
45
  inputs=[
46
  gr.Textbox(label="OpenAI API Key"),
 
48
 
49
  ],
50
  outputs=[
51
+ gr.Textbox(label="Summarized Answer"),
52
+ gr.Audio(label="Output Speech", type="filepath")
53
  ]).launch()