Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def transcribe(audio):
|
|
28 |
# chat_transcript += message["role"] + ": " + message["content"] + "\n\n"
|
29 |
#system_response = botResponse(transcript["text"])
|
30 |
|
31 |
-
return transcript
|
32 |
|
33 |
def botResponse(user_input):
|
34 |
response = openai.ChatCompletion.create(
|
@@ -43,7 +43,7 @@ def botResponse(user_input):
|
|
43 |
# if (message["role"] != "system"):
|
44 |
# chat_transcript += message["role"] + ": " + message["content"] + "\n\n"
|
45 |
|
46 |
-
return system_message
|
47 |
|
48 |
|
49 |
def giveVoice(bot_message):
|
|
|
28 |
# chat_transcript += message["role"] + ": " + message["content"] + "\n\n"
|
29 |
#system_response = botResponse(transcript["text"])
|
30 |
|
31 |
+
return transcript["text"]
|
32 |
|
33 |
def botResponse(user_input):
|
34 |
response = openai.ChatCompletion.create(
|
|
|
43 |
# if (message["role"] != "system"):
|
44 |
# chat_transcript += message["role"] + ": " + message["content"] + "\n\n"
|
45 |
|
46 |
+
return system_message
|
47 |
|
48 |
|
49 |
def giveVoice(bot_message):
|