Spaces:
Paused
Paused
AAAH
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ def generate(
|
|
| 45 |
current_input += message
|
| 46 |
|
| 47 |
device = "cuda"
|
| 48 |
-
input_ids = tokenizer(current_input, return_tensors="pt").to(device)
|
| 49 |
print(input_ids)
|
| 50 |
|
| 51 |
if len(input_ids) > MAX_INPUT_TOKEN_LENGTH:
|
|
|
|
| 45 |
current_input += message
|
| 46 |
|
| 47 |
device = "cuda"
|
| 48 |
+
input_ids = tokenizer(current_input, return_tensors="pt").input_ids.to(device)
|
| 49 |
print(input_ids)
|
| 50 |
|
| 51 |
if len(input_ids) > MAX_INPUT_TOKEN_LENGTH:
|