mamechin commited on
Commit
291b87e
1 Parent(s): c8df748

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -20,13 +20,12 @@ with gr.Blocks() as demo:
20
  """)
21
 
22
  # Model Evaluation
23
- # gr.Interface(
24
- # fn=predict,
25
- # inputs=gr.Image(type="pil"),
26
- # outputs=[gr.Image(type="pil", label="Image Prediction"),
27
- # gr.Textbox(type="text", label="Price Prediction")]
28
- # )
29
- gr.Interface(inputs=["image"],outputs=["image"],fn=lambda img:model(img).render()[0]).launch()
30
 
31
 
32
  if __name__ == "__main__":
 
20
  """)
21
 
22
  # Model Evaluation
23
+ gr.Interface(
24
+ fn=predict,
25
+ inputs=gr.Image(type="pil"),
26
+ outputs=[gr.Image(type="pil", label="Image Prediction"),
27
+ gr.Textbox(type="text", label="Price Prediction")]
28
+ )
 
29
 
30
 
31
  if __name__ == "__main__":