Spaces:
Runtime error
Runtime error
Commit ·
4bc80a3
1
Parent(s): b50b4fd
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ def predict(img):
|
|
| 19 |
img=np.array(img)
|
| 20 |
img=transform_gen(image=img)
|
| 21 |
img=img['image'].unsqueeze(0)
|
| 22 |
-
#
|
| 23 |
gen.eval()
|
| 24 |
with torch.inference_mode():
|
| 25 |
y_gen=gen(img)
|
|
|
|
| 19 |
img=np.array(img)
|
| 20 |
img=transform_gen(image=img)
|
| 21 |
img=img['image'].unsqueeze(0)
|
| 22 |
+
# Predic
|
| 23 |
gen.eval()
|
| 24 |
with torch.inference_mode():
|
| 25 |
y_gen=gen(img)
|