hwberry2 commited on
Commit
98c64ba
·
1 Parent(s): 0029a2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -58,8 +58,7 @@ def giveVoice(bot_message):
58
  dir = os.getcwd()
59
  new_path = os.path.join(dir, "temp.mp3")
60
 
61
- #return new_path
62
- return "test"
63
 
64
 
65
 
@@ -73,10 +72,9 @@ with gr.Blocks() as demo:
73
  with gr.Column():
74
  #gpt_response = gr.Audio(label="Voice Response")
75
  gpt_transcript = gr.Text(label="Generate Transcript")
76
- test_out = gr.Text(label="test")
77
- gpt_response = gr.Audio(label="Voice Response")
78
  submit_btn.click(transcribe, inputs=user_audio, outputs=gpt_transcript)
79
- gpt_transcript.change(giveVoice, inputs=gpt_transcript, outputs=test_out)
80
 
81
 
82
 
 
58
  dir = os.getcwd()
59
  new_path = os.path.join(dir, "temp.mp3")
60
 
61
+ return new_path
 
62
 
63
 
64
 
 
72
  with gr.Column():
73
  #gpt_response = gr.Audio(label="Voice Response")
74
  gpt_transcript = gr.Text(label="Generate Transcript")
75
+ gpt_voice = gr.Audio(label="Voice Response")
 
76
  submit_btn.click(transcribe, inputs=user_audio, outputs=gpt_transcript)
77
+ gpt_transcript.change(giveVoice, inputs=gpt_transcript, outputs=gpt_voice)
78
 
79
 
80