Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -72,9 +72,9 @@ def generate(prompt, history,max_new_tokens,health,temperature=temperature,top_p
|
|
72 |
for response in stream:
|
73 |
output += response.token.text
|
74 |
if history:
|
75 |
-
yield "",[(prompt,output)]
|
76 |
else:
|
77 |
-
yield "",[(prompt,output)]
|
78 |
|
79 |
lines = output.strip().strip("\n").split("\n")
|
80 |
#history=""
|
|
|
72 |
for response in stream:
|
73 |
output += response.token.text
|
74 |
if history:
|
75 |
+
yield "",[(prompt,output)],health
|
76 |
else:
|
77 |
+
yield "",[(prompt,output)],health
|
78 |
|
79 |
lines = output.strip().strip("\n").split("\n")
|
80 |
#history=""
|