Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,11 @@
|
|
1 |
from huggingface_hub import hf_hub_download
|
2 |
from inference import YOLOv10
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
model_file = hf_hub_download(
|
5 |
repo_id="onnx-community/yolov10n", filename="onnx/model.onnx"
|
@@ -27,9 +33,6 @@ if account_sid and auth_token:
|
|
27 |
else:
|
28 |
rtc_configuration = None
|
29 |
|
30 |
-
import gradio as gr
|
31 |
-
from gradio_webrtc import WebRTC
|
32 |
-
|
33 |
css = """.my-group {max-width: 600px !important; max-height: 600px !important;}
|
34 |
.my-column {display: flex !important; justify-content: center !important; align-items: center !important;}"""
|
35 |
|
|
|
1 |
from huggingface_hub import hf_hub_download
|
2 |
from inference import YOLOv10
|
3 |
+
import gradio as gr
|
4 |
+
import cv2
|
5 |
+
from huggingface_hub import hf_hub_download
|
6 |
+
from gradio_webrtc import WebRTC
|
7 |
+
from twilio.rest import Client
|
8 |
+
import os
|
9 |
|
10 |
model_file = hf_hub_download(
|
11 |
repo_id="onnx-community/yolov10n", filename="onnx/model.onnx"
|
|
|
33 |
else:
|
34 |
rtc_configuration = None
|
35 |
|
|
|
|
|
|
|
36 |
css = """.my-group {max-width: 600px !important; max-height: 600px !important;}
|
37 |
.my-column {display: flex !important; justify-content: center !important; align-items: center !important;}"""
|
38 |
|