mamechin
commited on
Commit
•
caf7e51
1
Parent(s):
bee9f09
v11
Browse files- app.py +2 -2
- requirement.txt +0 -2
- requirements.txt +2 -0
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
-
|
3 |
# import torch
|
4 |
-
model =
|
5 |
|
6 |
def predict(input_image):
|
7 |
"""
|
|
|
1 |
import gradio as gr
|
2 |
+
import yolov7
|
3 |
# import torch
|
4 |
+
model = model = yolov7.load('best.pt', device="cpu", hf_model=True, trace=False)
|
5 |
|
6 |
def predict(input_image):
|
7 |
"""
|
requirement.txt
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
gradio
|
2 |
-
ultralytics
|
|
|
|
|
|
requirements.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
torch
|
2 |
+
yolov7detect
|