Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,6 +8,9 @@ import gradio as gr
|
|
8 |
import numpy as np
|
9 |
import requests
|
10 |
from PIL import Image
|
|
|
|
|
|
|
11 |
|
12 |
# Load the YOLO model
|
13 |
model_path = "./best-model.torchscript"
|
|
|
8 |
import numpy as np
|
9 |
import requests
|
10 |
from PIL import Image
|
11 |
+
import torch
|
12 |
+
from torchvision import transforms
|
13 |
+
from PIL import Image
|
14 |
|
15 |
# Load the YOLO model
|
16 |
model_path = "./best-model.torchscript"
|