mamechin commited on
Commit
c8df748
1 Parent(s): a02f75c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -20,12 +20,14 @@ 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
 
30
  if __name__ == "__main__":
31
  demo.launch()
 
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__":
33
  demo.launch()