Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,12 +23,12 @@ from huggingface_hub import hf_hub_download
|
|
23 |
from fastai.learner import load_learner
|
24 |
|
25 |
model = torch.load("h2z-85epoch.pth",map_location=torch.device('cpu'))
|
26 |
-
def generate_img(
|
27 |
prediction = model(img, training=False)
|
28 |
return prediction
|
29 |
|
30 |
|
31 |
-
image = gr.inputs.Image(type="
|
32 |
op = gr.outputs.Image(type="numpy")
|
33 |
|
34 |
iface = gr.Interface(
|
|
|
23 |
from fastai.learner import load_learner
|
24 |
|
25 |
model = torch.load("h2z-85epoch.pth",map_location=torch.device('cpu'))
|
26 |
+
def generate_img(img):
|
27 |
prediction = model(img, training=False)
|
28 |
return prediction
|
29 |
|
30 |
|
31 |
+
image = gr.inputs.Image(type="numpy")
|
32 |
op = gr.outputs.Image(type="numpy")
|
33 |
|
34 |
iface = gr.Interface(
|