hwberry2 commited on
Commit
21bcfae
·
1 Parent(s): bb39e67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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["text"]
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):