Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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("
|
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(
|