Spaces:
Runtime error
Runtime error
ShreyMehra
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ class UI:
|
|
30 |
with st.spinner("🤖 AI is at Work! "):
|
31 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
32 |
print(device, 1)
|
33 |
-
inputs = processor(images=input_image, return_tensors="pt").to(device)
|
34 |
|
35 |
print(2)
|
36 |
pixel_values = inputs.pixel_values
|
|
|
30 |
with st.spinner("🤖 AI is at Work! "):
|
31 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
32 |
print(device, 1)
|
33 |
+
inputs = processor(images=input_image, return_tensors="pt").to(device, torch.float32)
|
34 |
|
35 |
print(2)
|
36 |
pixel_values = inputs.pixel_values
|