gheinrich commited on
Commit
a31fb38
1 Parent(s): 4b76f49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -147,7 +147,7 @@ def pad_image_to_multiple_of_16(image):
147
  @spaces.GPU
148
  def infer_radio(image):
149
  """Define the function to generate the output."""
150
- model.to(torch.bfloat16).cuda()
151
  image=pad_image_to_multiple_of_16(image)
152
  width, height = image.size
153
  pixel_values = image_processor(images=image, return_tensors='pt').pixel_values
 
147
  @spaces.GPU
148
  def infer_radio(image):
149
  """Define the function to generate the output."""
150
+ model.cuda()
151
  image=pad_image_to_multiple_of_16(image)
152
  width, height = image.size
153
  pixel_values = image_processor(images=image, return_tensors='pt').pixel_values