whitphx HF staff commited on
Commit
1edb6d8
1 Parent(s): 4a41e28

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +2 -1
index.html CHANGED
@@ -24,6 +24,8 @@ from transformers_js import import_transformers_js, as_url
24
  import gradio as gr
25
 
26
 
 
 
27
  IMAGE_SIZE = 256;
28
 
29
  transformers = await import_transformers_js()
@@ -44,7 +46,6 @@ async def detect(image_path):
44
 
45
  processed_input = await processor(image)
46
 
47
- # Predict bounding boxes
48
  result = await model(images=processed_input["pixel_values"])
49
 
50
  outputs = result["outputs"] # Tensor
 
24
  import gradio as gr
25
 
26
 
27
+ # Reference: https://huggingface.co/spaces/Xenova/yolov9-web/blob/main/index.js
28
+
29
  IMAGE_SIZE = 256;
30
 
31
  transformers = await import_transformers_js()
 
46
 
47
  processed_input = await processor(image)
48
 
 
49
  result = await model(images=processed_input["pixel_values"])
50
 
51
  outputs = result["outputs"] # Tensor