mskov commited on
Commit
649ceaa
1 Parent(s): 2ecde0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -56,11 +56,11 @@ def inference(audio, state=""):
56
  options = whisper.DecodingOptions(fp16 = False)
57
  # transcribe speech to text
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.
62
- Predict the next few words to help the speaker complete their sentence.
63
- A few examples are provided below:
64
  Transcript: Tomorrow night we're going out to
65
  Prediction: The Movies, A Restaurant, A Baseball Game, The Theater, A Party for a friend
66
  Transcript: I would like to order a cheeseburger with a side of
@@ -79,7 +79,7 @@ def inference(audio, state=""):
79
  model="text-ada-001",
80
  #model="text-curie-001",
81
  prompt=text,
82
- temperature=1,
83
  max_tokens=8,
84
  n=5)
85
 
 
56
  options = whisper.DecodingOptions(fp16 = False)
57
  # transcribe speech to text
58
  result = whisper.decode(model, mel, options)
59
+ print("result pre gp model from whisper: ", result, ".text ", result.text, "and the data type: ", type(result.text))
60
 
61
  PROMPT = """The following is an incomplete transcript of a brief conversation.
62
+ Predict the next few words int he transcript to complete the sentence.
63
+ A few examples of transcripts and predictions are provided below:
64
  Transcript: Tomorrow night we're going out to
65
  Prediction: The Movies, A Restaurant, A Baseball Game, The Theater, A Party for a friend
66
  Transcript: I would like to order a cheeseburger with a side of
 
79
  model="text-ada-001",
80
  #model="text-curie-001",
81
  prompt=text,
82
+ temperature=0.9,
83
  max_tokens=8,
84
  n=5)
85