Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -549,7 +549,7 @@ def upscaler(
|
|
549 |
return enhanced_image
|
550 |
|
551 |
def get_tensor_length(tensor):
|
552 |
-
nums = list(tensor.size)
|
553 |
ret = 1
|
554 |
for num in nums:
|
555 |
ret = ret * num
|
|
|
549 |
return enhanced_image
|
550 |
|
551 |
def get_tensor_length(tensor):
|
552 |
+
nums = list(tensor.size())
|
553 |
ret = 1
|
554 |
for num in nums:
|
555 |
ret = ret * num
|