Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def predict(input, history=[]):
|
|
19 |
top_p=1,
|
20 |
frequency_penalty=0,
|
21 |
presence_penalty=0.6,
|
22 |
-
|
23 |
# tokenize the new input sentence
|
24 |
response2 = response["choices"][0]["text"]
|
25 |
history.append((input, response2))
|
|
|
19 |
top_p=1,
|
20 |
frequency_penalty=0,
|
21 |
presence_penalty=0.6,
|
22 |
+
stop=[" Human:", " AI:"])
|
23 |
# tokenize the new input sentence
|
24 |
response2 = response["choices"][0]["text"]
|
25 |
history.append((input, response2))
|