Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,8 +27,8 @@ def chat(message, history):
|
|
27 |
add_generation_prompt=True
|
28 |
)
|
29 |
|
30 |
-
model_inputs = tokenizer([text], return_tensors="pt").to("cuda")
|
31 |
-
|
32 |
streamer = TextIteratorStreamer(tokenizer, timeout=10., skip_prompt=True, skip_special_tokens=True)
|
33 |
generate_kwargs = dict(
|
34 |
model_inputs,
|
|
|
27 |
add_generation_prompt=True
|
28 |
)
|
29 |
|
30 |
+
# model_inputs = tokenizer([text], return_tensors="pt").to("cuda")
|
31 |
+
model_inputs = tokenizer([text], return_tensors="pt")
|
32 |
streamer = TextIteratorStreamer(tokenizer, timeout=10., skip_prompt=True, skip_special_tokens=True)
|
33 |
generate_kwargs = dict(
|
34 |
model_inputs,
|