Spaces:
Running
Running
Saurabh Kumar
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ if uploaded_file is not None:
|
|
61 |
padding=True,
|
62 |
return_tensors="pt",
|
63 |
)
|
64 |
-
inputs = inputs.to("
|
65 |
|
66 |
# Inference: Generation of the output
|
67 |
generated_ids = model.generate(**inputs, max_new_tokens=128)
|
|
|
61 |
padding=True,
|
62 |
return_tensors="pt",
|
63 |
)
|
64 |
+
inputs = inputs.to("cpu")
|
65 |
|
66 |
# Inference: Generation of the output
|
67 |
generated_ids = model.generate(**inputs, max_new_tokens=128)
|