Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def format_prompt(message, history):
|
|
19 |
|
20 |
def chat_inf(system_prompt,prompt,history):
|
21 |
if not history:
|
22 |
-
history =
|
23 |
|
24 |
seed = random.randint(1,1111111111111111)
|
25 |
generate_kwargs = dict(
|
@@ -36,7 +36,7 @@ def chat_inf(system_prompt,prompt,history):
|
|
36 |
output = ""
|
37 |
for response in stream:
|
38 |
output += response.token.text
|
39 |
-
history=[history,(prompt,output)
|
40 |
yield history
|
41 |
|
42 |
|
|
|
19 |
|
20 |
def chat_inf(system_prompt,prompt,history):
|
21 |
if not history:
|
22 |
+
history = (None,None)
|
23 |
|
24 |
seed = random.randint(1,1111111111111111)
|
25 |
generate_kwargs = dict(
|
|
|
36 |
output = ""
|
37 |
for response in stream:
|
38 |
output += response.token.text
|
39 |
+
history=[history,(prompt,output)]
|
40 |
yield history
|
41 |
|
42 |
|