Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def format_prompt(message, history):
|
|
17 |
return prompt
|
18 |
|
19 |
def compress_history(history,temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0):
|
20 |
-
formatted_prompt=f"{COMPRESS_HISTORY.format(history=history)"
|
21 |
generate_kwargs = dict(
|
22 |
temperature=temperature,
|
23 |
max_new_tokens=max_new_tokens,
|
|
|
17 |
return prompt
|
18 |
|
19 |
def compress_history(history,temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0):
|
20 |
+
formatted_prompt=f"{COMPRESS_HISTORY.format(history=history)}"
|
21 |
generate_kwargs = dict(
|
22 |
temperature=temperature,
|
23 |
max_new_tokens=max_new_tokens,
|