Cecilia-CC136 commited on
Commit
511b1cf
·
verified ·
1 Parent(s): a7cfcb9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -75,11 +75,12 @@ def generate_response(user_query, relevant_segment):
75
  response = openai.ChatCompletion.create(
76
  model="gpt-3.5-turbo",
77
  messages=messages,
78
- max_tokens=150,
79
  temperature=0.2,
80
  top_p=1,
81
  frequency_penalty=0,
82
  presence_penalty=0
 
83
  )
84
 
85
  # Extract the response text
 
75
  response = openai.ChatCompletion.create(
76
  model="gpt-3.5-turbo",
77
  messages=messages,
78
+ max_tokens=500,
79
  temperature=0.2,
80
  top_p=1,
81
  frequency_penalty=0,
82
  presence_penalty=0
83
+ stop=None
84
  )
85
 
86
  # Extract the response text