SoggyKiwi commited on
Commit
5c39195
1 Parent(s): d88b206

gradio number doesn't have a type apparently

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def process_image(input_image, learning_rate, iterations):
22
  pixel_values = pixel_values.to(device)
23
  pixel_values.requires_grad_(True)
24
 
25
- for iteration in range(iterations):
26
  model.zero_grad()
27
  if pixel_values.grad is not None:
28
  pixel_values.grad.data.zero_()
 
22
  pixel_values = pixel_values.to(device)
23
  pixel_values.requires_grad_(True)
24
 
25
+ for iteration in range(int(iterations)):
26
  model.zero_grad()
27
  if pixel_values.grad is not None:
28
  pixel_values.grad.data.zero_()