Rialbox commited on
Commit
1200067
·
verified ·
1 Parent(s): ce6a793

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -94,7 +94,7 @@ def get_math_response(image_description, user_question):
94
  text=query,
95
  padding=True,
96
  return_tensors="pt"
97
- ).to("cuda") # Use CPU if GPU is unavailable
98
 
99
  # Generate the math reasoning response
100
  output_ids = math_model.generate(
 
94
  text=query,
95
  padding=True,
96
  return_tensors="pt"
97
+ ).to("cpu") # Use CPU if GPU is unavailable
98
 
99
  # Generate the math reasoning response
100
  output_ids = math_model.generate(