mskov commited on
Commit
61ce1fa
·
1 Parent(s): 5ba031c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -58,7 +58,7 @@ def inference(audio, state=""):
58
  result = whisper.decode(model, mel, options)
59
  print("result pre gp model from whisper: ", result, ".text ", result.text)
60
 
61
- PROMPT = """The following is a transcript of a conversation. Predict the next few words in the conversation as a List of options.
62
  A few examples are provided below and then the current transcript is provided.
63
  Examples:
64
  Transcript: Tomorrow night we're going out to
@@ -69,6 +69,7 @@ def inference(audio, state=""):
69
  Prediction: An elecrical engineer, A marine biologist, A classical musician
70
  Transcript: I need to buy a birthday
71
  Prediction: Present, Gift, Cake, Card
 
72
  """
73
  text = PROMPT + result.text
74
 
@@ -78,7 +79,7 @@ def inference(audio, state=""):
78
  model="text-ada-001",
79
  #model="text-curie-001",
80
  prompt=text,
81
- temperature=0.3,
82
  max_tokens=8,
83
  n=5)
84
 
 
58
  result = whisper.decode(model, mel, options)
59
  print("result pre gp model from whisper: ", result, ".text ", result.text)
60
 
61
+ PROMPT = """The following is an incomplete transcript of a brief conversation. Predict the next few words in the sentence provided as a List of options.
62
  A few examples are provided below and then the current transcript is provided.
63
  Examples:
64
  Transcript: Tomorrow night we're going out to
 
69
  Prediction: An elecrical engineer, A marine biologist, A classical musician
70
  Transcript: I need to buy a birthday
71
  Prediction: Present, Gift, Cake, Card
72
+ Complete the sentence in this transcript:
73
  """
74
  text = PROMPT + result.text
75
 
 
79
  model="text-ada-001",
80
  #model="text-curie-001",
81
  prompt=text,
82
+ temperature=,1
83
  max_tokens=8,
84
  n=5)
85