Update app.py
Browse files
app.py
CHANGED
@@ -20,12 +20,14 @@ with gr.Blocks() as demo:
|
|
20 |
""")
|
21 |
|
22 |
# Model Evaluation
|
23 |
-
gr.Interface(
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
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()
|