Spaces:
Sleeping
Sleeping
Fixed repetitive output
Browse files
app.py
CHANGED
@@ -34,11 +34,12 @@ def convert_history(message, history):
|
|
34 |
|
35 |
def ask(message, history):
|
36 |
chat_history = convert_history(message, history)
|
37 |
-
chunks = llm
|
38 |
-
|
39 |
-
temperature = 0,
|
|
|
40 |
stream = True,
|
41 |
-
repeat_penalty = 1.
|
42 |
max_tokens = 128,
|
43 |
)
|
44 |
|
|
|
34 |
|
35 |
def ask(message, history):
|
36 |
chat_history = convert_history(message, history)
|
37 |
+
chunks = llm(
|
38 |
+
chat_history,
|
39 |
+
temperature = 0.2,
|
40 |
+
top_p=0.9,
|
41 |
stream = True,
|
42 |
+
repeat_penalty = 1.05,
|
43 |
max_tokens = 128,
|
44 |
)
|
45 |
|