divakaivan commited on
Commit
5233ff4
1 Parent(s): ff917b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -65,14 +65,13 @@ def voice_assistant(audio):
65
  transcribed_text = transcribe(audio)
66
  response_text = generate_response(transcribed_text)
67
  speech_audio = synthesize_speech(response_text)
68
- return response_text, speech_audio
69
 
70
  iface = gr.Interface(
71
  fn=voice_assistant,
72
  inputs=gr.Audio(type="filepath"),
73
- outputs=[gr.Textbox(label="Response Text"), gr.Audio(label="Response Speech", type="numpy")],
74
- title="Voice Assistant with LLM",
75
- description="A voice assistant that uses ASR, LLM, and TTS to interact with users.",
76
  )
77
 
78
  iface.launch()
 
65
  transcribed_text = transcribe(audio)
66
  response_text = generate_response(transcribed_text)
67
  speech_audio = synthesize_speech(response_text)
68
+ return speech_audio
69
 
70
  iface = gr.Interface(
71
  fn=voice_assistant,
72
  inputs=gr.Audio(type="filepath"),
73
+ outputs=gr.Audio(label="Response Speech", type="numpy"),
74
+ title="Your Glaswegian Assistant"
 
75
  )
76
 
77
  iface.launch()