Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from PIL import Image
|
3 |
+
import os
|
4 |
+
import torch
|
5 |
+
import torch.nn.functional as F
|
6 |
+
import torchvision.transforms as transforms
|
7 |
+
import torchvision
|
8 |
+
import numpy as np
|
9 |
+
import yaml
|
10 |
+
from huggingface_hub import hf_hub_download
|
11 |
+
from ultralytics import YOLO
|
12 |
+
|