Spaces:
Running
on
Zero
Running
on
Zero
BramVanroy
commited on
Commit
•
ef2cabe
1
Parent(s):
bf5b4d2
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def generate(
|
|
29 |
top_k: int = 40,
|
30 |
repetition_penalty: float = 1.2,
|
31 |
) -> Iterator[str]:
|
32 |
-
conversation = [
|
33 |
for user, assistant in chat_history:
|
34 |
conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
|
35 |
conversation.append({"role": "user", "content": message})
|
|
|
29 |
top_k: int = 40,
|
30 |
repetition_penalty: float = 1.2,
|
31 |
) -> Iterator[str]:
|
32 |
+
conversation = []
|
33 |
for user, assistant in chat_history:
|
34 |
conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
|
35 |
conversation.append({"role": "user", "content": message})
|