Update index.html
Browse files- index.html +2 -2
index.html
CHANGED
@@ -72,7 +72,7 @@
|
|
72 |
import gradio as gr
|
73 |
|
74 |
|
75 |
-
|
76 |
async function getPointMask(image, points) {
|
77 |
console.log("getting point mask");
|
78 |
console.log(points)
|
@@ -90,7 +90,7 @@
|
|
90 |
points_state.append([evt.index[0]/image.width, evt.index[1]/image.height, True])
|
91 |
return points_state, points_state
|
92 |
|
93 |
-
with gr.Blocks(
|
94 |
gr.Markdown("""## Segment Anything Model (SAM) with Gradio Lite
|
95 |
This demo uses [Gradio Lite](https://www.gradio.app/guides/gradio-lite) as UI for running the Segment Anything Model (SAM) with WASM build with [Candle](https://github.com/huggingface/candle).
|
96 |
|
|
|
72 |
import gradio as gr
|
73 |
|
74 |
|
75 |
+
get_point_mask = """
|
76 |
async function getPointMask(image, points) {
|
77 |
console.log("getting point mask");
|
78 |
console.log(points)
|
|
|
90 |
points_state.append([evt.index[0]/image.width, evt.index[1]/image.height, True])
|
91 |
return points_state, points_state
|
92 |
|
93 |
+
with gr.Blocks() as demo:
|
94 |
gr.Markdown("""## Segment Anything Model (SAM) with Gradio Lite
|
95 |
This demo uses [Gradio Lite](https://www.gradio.app/guides/gradio-lite) as UI for running the Segment Anything Model (SAM) with WASM build with [Candle](https://github.com/huggingface/candle).
|
96 |
|