Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,8 @@ def generate(
|
|
62 |
if max_new_tokens > MAX_MAX_NEW_TOKENS:
|
63 |
raise ValueError
|
64 |
|
65 |
-
history = history_with_input[:-1]
|
|
|
66 |
generator = run(message, history, system_prompt, max_new_tokens, temperature, top_p, top_k)
|
67 |
try:
|
68 |
first_response = next(generator)
|
|
|
62 |
if max_new_tokens > MAX_MAX_NEW_TOKENS:
|
63 |
raise ValueError
|
64 |
|
65 |
+
#history = history_with_input[:-1]
|
66 |
+
history = []
|
67 |
generator = run(message, history, system_prompt, max_new_tokens, temperature, top_p, top_k)
|
68 |
try:
|
69 |
first_response = next(generator)
|