Ahsen Khaliq commited on
Commit
c54f320
1 Parent(s): 05f9041

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -11,5 +11,10 @@ def inference(image):
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()
 
11
  model.predict(image.name)
12
  return './output/DeOldify/'+Path(image.name).stem+".png"
13
 
14
+ title = "DeOldify"
15
+ description = "Gradio demo for DeOldify. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
16
+ article = "<p style='text-align: center'><a href='https://github.com/jantic/DeOldify' target='_blank'>Github Repo</a></p>"
17
+
18
+ examples=[['lunch.jpeg']]
19
+ iface = gr.Interface(inference, inputs=gr.inputs.Image(type="file"), outputs=gr.outputs.Image(type="file"),examples=examples,enable_queue=True)
20
  iface.launch()