NeuralJunkie commited on
Commit
16268c2
·
1 Parent(s): 6d4b709

Update app.py

Browse files

Added 'stop' parameter in an attempt to cut out nonsensical responses after correct answer

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ def chat(text):
16
  prompt=prompt,
17
  max_tokens=1024,
18
  n=1,
19
- stop=None,
20
  temperature=0.7,
21
  )
22
 
 
16
  prompt=prompt,
17
  max_tokens=1024,
18
  n=1,
19
+ stop=["\n"],
20
  temperature=0.7,
21
  )
22