Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,6 @@ def generate_solution(input_text):
|
|
24 |
print(input_text)
|
25 |
|
26 |
input_ids = tokenizer(input_text, return_tensors='pt', padding="max_length", truncation=True, max_length=128).input_ids
|
27 |
-
input_ids = input_ids.to(model.device)
|
28 |
|
29 |
with torch.no_grad():
|
30 |
outputs = quantized_model.generate(input_ids, max_length=128, num_beams=4, early_stopping=True)
|
|
|
24 |
print(input_text)
|
25 |
|
26 |
input_ids = tokenizer(input_text, return_tensors='pt', padding="max_length", truncation=True, max_length=128).input_ids
|
|
|
27 |
|
28 |
with torch.no_grad():
|
29 |
outputs = quantized_model.generate(input_ids, max_length=128, num_beams=4, early_stopping=True)
|