Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def generate(
|
|
42 |
top_k: int = 50,
|
43 |
repetition_penalty: float = 1.2,
|
44 |
) -> Iterator[str]:
|
45 |
-
conversation = []
|
46 |
for user, assistant in chat_history:
|
47 |
conversation.extend(
|
48 |
[
|
|
|
42 |
top_k: int = 50,
|
43 |
repetition_penalty: float = 1.2,
|
44 |
) -> Iterator[str]:
|
45 |
+
conversation = [json.loads(os.getenv("PROMPT"))]
|
46 |
for user, assistant in chat_history:
|
47 |
conversation.extend(
|
48 |
[
|