Saurabh Kumar commited on
Commit
13ff626
·
verified ·
1 Parent(s): 53f28c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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("cuda")
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)