Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def process_stream(instruction, temperature, top_p, top_k, max_new_tokens, seed)
|
|
22 |
)
|
23 |
else:
|
24 |
history = instruction.split("[SEP]")
|
25 |
-
chatglm_llm.chat(
|
26 |
history=history,
|
27 |
temperature=temperature,
|
28 |
top_p=top_p,top_k=top_k,max_length=max_new_tokens,
|
|
|
22 |
)
|
23 |
else:
|
24 |
history = instruction.split("[SEP]")
|
25 |
+
streamer = chatglm_llm.chat(
|
26 |
history=history,
|
27 |
temperature=temperature,
|
28 |
top_p=top_p,top_k=top_k,max_length=max_new_tokens,
|