Spaces:
Sleeping
Sleeping
gradio number doesn't have a type apparently
Browse files
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_()
|