Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -38,8 +38,8 @@ def giveVoice(bot_message):
|
|
38 |
|
39 |
return new_path
|
40 |
|
41 |
-
def keepLog(
|
42 |
-
chat_log =
|
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=
|
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 |
|