Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
•
05f9041
1
Parent(s):
7391bf0
Update app.py
Browse files
app.py
CHANGED
@@ -11,5 +11,5 @@ def inference(image):
|
|
11 |
model.predict(image.name)
|
12 |
return './output/DeOldify/'+Path(image.name).stem+".png"
|
13 |
|
14 |
-
iface = gr.Interface(inference, inputs=
|
15 |
iface.launch()
|
|
|
11 |
model.predict(image.name)
|
12 |
return './output/DeOldify/'+Path(image.name).stem+".png"
|
13 |
|
14 |
+
iface = gr.Interface(inference, inputs=gr.inputs.Image(type="file"), outputs=gr.outputs.Image(type="file"))
|
15 |
iface.launch()
|