mskov commited on
Commit
c440214
1 Parent(s): a458b72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -57,9 +57,13 @@ def inference(audio, latest):
57
 
58
  if transcript != None:
59
  latest.append(transcript)
60
- tscript = EXAMPLE_PROMPT + str(transcript) + "\nPrediction: "
 
61
  else: tscript = EXAMPLE_PROMPT
 
 
62
  print("tscript ------- ", tscript)
 
63
  response = openai.Completion.create(
64
  model="text-davinci-003",
65
  prompt=tscript,
 
57
 
58
  if transcript != None:
59
  latest.append(transcript)
60
+ #tscript = EXAMPLE_PROMPT + str(transcript) + "\nPrediction: "
61
+ tscript = EXAMPLE_PROMPT + latest + "\nPrediction: "
62
  else: tscript = EXAMPLE_PROMPT
63
+
64
+
65
  print("tscript ------- ", tscript)
66
+
67
  response = openai.Completion.create(
68
  model="text-davinci-003",
69
  prompt=tscript,