Spaces:
Runtime error
Runtime error
fix: empty list instead of None
Browse files
app.py
CHANGED
@@ -162,7 +162,7 @@ def generate(
|
|
162 |
#seed=seed,
|
163 |
)
|
164 |
#seed = seed + 1
|
165 |
-
history =
|
166 |
formatted_prompt = format_prompt(prompt, history, system_prompt)
|
167 |
|
168 |
print(f"Formatted Prompt: {formatted_prompt}")
|
|
|
162 |
#seed=seed,
|
163 |
)
|
164 |
#seed = seed + 1
|
165 |
+
history = [] # explicitly set the history as none so no history is important anymore
|
166 |
formatted_prompt = format_prompt(prompt, history, system_prompt)
|
167 |
|
168 |
print(f"Formatted Prompt: {formatted_prompt}")
|