ShreyMehra commited on
Commit
7d5edad
·
unverified ·
1 Parent(s): 01637c8

Update app.py

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