Spaces:
Running
Running
Hu
commited on
Commit
·
15d0c07
1
Parent(s):
97ecea7
change loading image
Browse files
app.py
CHANGED
|
@@ -127,7 +127,7 @@ model.eval()
|
|
| 127 |
|
| 128 |
def super_reso(image):
|
| 129 |
# gradio open image as np array
|
| 130 |
-
image = Image.fromarray(image, mode="RGB")
|
| 131 |
|
| 132 |
# prediction
|
| 133 |
with torch.no_grad():
|
|
|
|
| 127 |
|
| 128 |
def super_reso(image):
|
| 129 |
# gradio open image as np array
|
| 130 |
+
# image = Image.fromarray(image, mode="RGB") # not needed, gradio already processes it
|
| 131 |
|
| 132 |
# prediction
|
| 133 |
with torch.no_grad():
|