diff --git a/website/homepage/src/index_template.html b/website/homepage/src/index_template.html index dd886f6408..7935c46ca2 100644 --- a/website/homepage/src/index_template.html +++ b/website/homepage/src/index_template.html @@ -95,7 +95,7 @@ onclick="load_demo(1)">Sketch Recognition
import gradio as gr
-def image_classifier(image):
- # Implement image classification model here...
- # Return label of confidences
+def segment(image):
+ # Implement image segmentation model here...
+ # Return segmented image
-iface = gr.Interface(fn=image_classifier, inputs="webcam", outputs="label").launch()
+iface = gr.Interface(fn=segment, inputs="image", outputs="image").launch()