hwberry2 commited on
Commit
f0b4a59
·
1 Parent(s): 139fee7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -38,8 +38,8 @@ def giveVoice(bot_message):
38
 
39
  return new_path
40
 
41
- def keepLog(user, gpt):
42
- chat_log = user + " : " + gpt
43
 
44
  return chat_log
45
 
@@ -58,7 +58,7 @@ with gr.Blocks() as demo:
58
  submit_btn.click(transcribe, inputs=user_audio, outputs=user_transcript)
59
  user_transcript.change(botResponse, inputs=user_transcript, outputs=gpt_transcript)
60
  gpt_transcript.change(giveVoice, inputs=gpt_transcript, outputs=gpt_voice)
61
- gpt_voice.change(keepLog, inputs=[user_transcript, gpt_transcript], outputs=gpt_voice)
62
 
63
 
64
 
 
38
 
39
  return new_path
40
 
41
+ def keepLog(gpt):
42
+ chat_log = gpt
43
 
44
  return chat_log
45
 
 
58
  submit_btn.click(transcribe, inputs=user_audio, outputs=user_transcript)
59
  user_transcript.change(botResponse, inputs=user_transcript, outputs=gpt_transcript)
60
  gpt_transcript.change(giveVoice, inputs=gpt_transcript, outputs=gpt_voice)
61
+ gpt_voice.change(keepLog, inputs=gpt_transcript, outputs=gpt_voice)
62
 
63
 
64