jchwenger
commited on
Commit
·
c4ed4fa
1
Parent(s):
41bc014
app | "cuda" → device fix
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ def predict(message, history):
|
|
72 |
# print("-" * 40)
|
73 |
|
74 |
# convert the string into tensors & move to GPU
|
75 |
-
model_inputs = tokenizer([messages], return_tensors="pt").to(
|
76 |
|
77 |
streamer = TextIteratorStreamer(tokenizer, timeout=30., skip_prompt=True, skip_special_tokens=True)
|
78 |
generate_kwargs = dict(
|
|
|
72 |
# print("-" * 40)
|
73 |
|
74 |
# convert the string into tensors & move to GPU
|
75 |
+
model_inputs = tokenizer([messages], return_tensors="pt").to(device)
|
76 |
|
77 |
streamer = TextIteratorStreamer(tokenizer, timeout=30., skip_prompt=True, skip_special_tokens=True)
|
78 |
generate_kwargs = dict(
|