Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -26,9 +26,9 @@ def transcribe(audio):
|
|
26 |
#for message in msg_contents:
|
27 |
# if (message["role"] != "system"):
|
28 |
# chat_transcript += message["role"] + ": " + message["content"] + "\n\n"
|
29 |
-
system_response = botResponse(transcript
|
30 |
|
31 |
-
return
|
32 |
|
33 |
def botResponse(user_input):
|
34 |
response = openai.ChatCompletion.create(
|
|
|
26 |
#for message in msg_contents:
|
27 |
# if (message["role"] != "system"):
|
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(
|