hwberry2 commited on
Commit
0029a2d
·
1 Parent(s): 08bec97

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -58,8 +58,8 @@ def giveVoice(bot_message):
58
  dir = os.getcwd()
59
  new_path = os.path.join(dir, "temp.mp3")
60
 
61
- return new_path
62
-
63
 
64
 
65
 
@@ -73,9 +73,10 @@ 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
  gpt_response = gr.Audio(label="Voice Response")
77
  submit_btn.click(transcribe, inputs=user_audio, outputs=gpt_transcript)
78
- gpt_transcript.change(giveVoice, inputs=gpt_transcript, outputs="audio")
79
 
80
 
81
 
 
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
  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