CindyBSydney
commited on
Commit
·
94f7f47
1
Parent(s):
5e2b50c
Update app.py
Browse files
app.py
CHANGED
@@ -98,9 +98,16 @@ def process_image(image):
|
|
98 |
handle.remove() # Remove the hook
|
99 |
return output_text, heatmap_image
|
100 |
|
101 |
-
iface = gr.Interface(
|
102 |
-
|
103 |
-
|
104 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
|
106 |
iface.launch()
|
|
|
98 |
handle.remove() # Remove the hook
|
99 |
return output_text, heatmap_image
|
100 |
|
101 |
+
iface = gr.Interface(
|
102 |
+
fn=process_image,
|
103 |
+
inputs=gr.Image(type="pil"),
|
104 |
+
outputs=["text", "image"],
|
105 |
+
title="Gastrohub Cancer Detection",
|
106 |
+
description="Upload an image to classify it as normal or abnormal.",
|
107 |
+
article="Above is a sample image to test the results of the model. Click it to see the results.",
|
108 |
+
examples=[
|
109 |
+
["Ladybug.png"],
|
110 |
+
],
|
111 |
+
allow_flagging="never",)
|
112 |
|
113 |
iface.launch()
|