Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import torch
|
2 |
import gradio as gr
|
3 |
-
|
4 |
model = torch.hub.load("yolov5-code-main/", "custom", path="yolov5-code-main/best.pt", source="local")
|
5 |
|
6 |
title = "✨基于YOLOV5的消化道多病变检测平台✨"
|
@@ -24,3 +24,9 @@ gr.Interface(inputs=["image", gr.Slider(minimum=0, maximum=1, value=base_conf),
|
|
24 |
article = "(●ˇ∀ˇ●)",
|
25 |
live=True,
|
26 |
examples=[["yolov5-code-main/976.jpg", base_conf, base_iou],["yolov5-code-main/967.jpg", base_conf, base_iou]]).launch(auth=("admin", "1234"),share=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import torch
|
2 |
import gradio as gr
|
3 |
+
import cv2
|
4 |
model = torch.hub.load("yolov5-code-main/", "custom", path="yolov5-code-main/best.pt", source="local")
|
5 |
|
6 |
title = "✨基于YOLOV5的消化道多病变检测平台✨"
|
|
|
24 |
article = "(●ˇ∀ˇ●)",
|
25 |
live=True,
|
26 |
examples=[["yolov5-code-main/976.jpg", base_conf, base_iou],["yolov5-code-main/967.jpg", base_conf, base_iou]]).launch(auth=("admin", "1234"),share=False)
|
27 |
+
|
28 |
+
|
29 |
+
|
30 |
+
|
31 |
+
|
32 |
+
|