Spaces:
Runtime error
Runtime error
GIanlucaRub
commited on
Commit
•
9d36c88
1
Parent(s):
8498745
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,9 @@ import numpy as np
|
|
3 |
from math import ceil
|
4 |
from huggingface_hub import from_pretrained_keras
|
5 |
|
6 |
-
model = from_pretrained_keras("GIanlucaRub/doubleResFinal")
|
|
|
|
|
7 |
def double_res(input_image):
|
8 |
input_height = input_image.shape[0]
|
9 |
input_width = input_image.shape[1]
|
@@ -56,7 +58,8 @@ def double_res(input_image):
|
|
56 |
|
57 |
# predicting all images at once
|
58 |
completed = False
|
59 |
-
n = 16
|
|
|
60 |
while not completed:
|
61 |
try:
|
62 |
print("attempting with "+ str(n))
|
|
|
3 |
from math import ceil
|
4 |
from huggingface_hub import from_pretrained_keras
|
5 |
|
6 |
+
# model = from_pretrained_keras("GIanlucaRub/doubleResFinal")
|
7 |
+
model = from_pretrained_keras("GIanlucaRub/autoencoder_model_d_0")
|
8 |
+
|
9 |
def double_res(input_image):
|
10 |
input_height = input_image.shape[0]
|
11 |
input_width = input_image.shape[1]
|
|
|
58 |
|
59 |
# predicting all images at once
|
60 |
completed = False
|
61 |
+
# n = 16
|
62 |
+
n = 1
|
63 |
while not completed:
|
64 |
try:
|
65 |
print("attempting with "+ str(n))
|