simonraj commited on
Commit
dca6111
·
1 Parent(s): fdb5f45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,7 +22,7 @@ def predict(question_choice, audio):
22
  message = transcript["text"] # This is the transcribed message from the audio input
23
 
24
  # Generate the system message based on the chosen question
25
- strategy, explanation = StTeresaData.strategy_text["PEEL"]
26
 
27
  # Reference to the picture description from StTeresaData.py
28
  picture_description = StTeresaData.description
@@ -56,7 +56,7 @@ def predict(question_choice, audio):
56
  model='gpt-3.5-turbo',
57
  messages=conversation,
58
  temperature=0.6,
59
- max_tokens=550, # Limiting the response to 1000 tokens
60
  stream=True
61
  )
62
 
 
22
  message = transcript["text"] # This is the transcribed message from the audio input
23
 
24
  # Generate the system message based on the chosen question
25
+ strategy, explanation = StTeresaData.strategy_text["PEEL"]
26
 
27
  # Reference to the picture description from StTeresaData.py
28
  picture_description = StTeresaData.description
 
56
  model='gpt-3.5-turbo',
57
  messages=conversation,
58
  temperature=0.6,
59
+ max_tokens=550, # Limiting the response to 550 tokens
60
  stream=True
61
  )
62