Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def generate(prompt):
|
|
17 |
model, tokenizer = get_model()
|
18 |
|
19 |
input_context = prompt
|
20 |
-
input_ids = tokenizer.encode(input_context, return_tensors="pt").to('
|
21 |
|
22 |
outputs = model.generate(
|
23 |
input_ids=input_ids,
|
|
|
17 |
model, tokenizer = get_model()
|
18 |
|
19 |
input_context = prompt
|
20 |
+
input_ids = tokenizer.encode(input_context, return_tensors="pt").to('cpu')
|
21 |
|
22 |
outputs = model.generate(
|
23 |
input_ids=input_ids,
|