Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
-
from
|
| 2 |
-
from PIL import Image, ImageOps
|
| 3 |
import numpy as np
|
| 4 |
import gradio as gr
|
| 5 |
import pandas as pd
|
|
@@ -7,7 +6,6 @@ import torch
|
|
| 7 |
import json
|
| 8 |
|
| 9 |
# Load the model
|
| 10 |
-
classify_model = load_model('keras_model.h5')
|
| 11 |
detect_model = torch.hub.load('ultralytics/yolov5', 'custom', path='best.pt', force_reload=True, _verbose=False)
|
| 12 |
|
| 13 |
def detect(image):
|
|
|
|
| 1 |
+
from PIL import Image
|
|
|
|
| 2 |
import numpy as np
|
| 3 |
import gradio as gr
|
| 4 |
import pandas as pd
|
|
|
|
| 6 |
import json
|
| 7 |
|
| 8 |
# Load the model
|
|
|
|
| 9 |
detect_model = torch.hub.load('ultralytics/yolov5', 'custom', path='best.pt', force_reload=True, _verbose=False)
|
| 10 |
|
| 11 |
def detect(image):
|