panchajanya1999 commited on
Commit
4952aec
·
verified ·
1 Parent(s): 0b8427c

app: Increase tokens to 512

Browse files

More diverse and coherent text responses with
increased accuracy.

Signed-off-by: Panchajanya1999 <rsk52959@gmail.com>

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ opai.api_key = os.getenv("OPENAI_API_KEY")
17
  def chatbot(prompt, temperature = 0.2):
18
  response = opai.ChatCompletion.create(
19
  model = "gpt-3.5-turbo",
20
- max_tokens = 100,
21
  temperature = temperature,
22
  frequency_penalty = 0,
23
  presence_penalty = 0.6,
 
17
  def chatbot(prompt, temperature = 0.2):
18
  response = opai.ChatCompletion.create(
19
  model = "gpt-3.5-turbo",
20
+ max_tokens = 512,
21
  temperature = temperature,
22
  frequency_penalty = 0,
23
  presence_penalty = 0.6,