Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ os.environ["GOOGLE_API_KEY"] = "AIzaSyDT0y1kJqgGKiOYiYFMXc-2kTgV_WLbOpA"#os.gete
|
|
| 15 |
gemini_model = ChatGoogleGenerativeAI(model="gemini-1.5-flash")
|
| 16 |
|
| 17 |
# β
Load the YOLO model
|
| 18 |
-
yolo_model = YOLO("
|
| 19 |
names = yolo_model.names
|
| 20 |
|
| 21 |
def encode_image_to_base64(image):
|
|
@@ -121,7 +121,7 @@ def gradio_interface(video_path):
|
|
| 121 |
return process_video(video_path)
|
| 122 |
|
| 123 |
# β
Sample video file
|
| 124 |
-
sample_video_path = "
|
| 125 |
|
| 126 |
# β
Gradio UI setup with sample video
|
| 127 |
iface = gr.Interface(
|
|
|
|
| 15 |
gemini_model = ChatGoogleGenerativeAI(model="gemini-1.5-flash")
|
| 16 |
|
| 17 |
# β
Load the YOLO model
|
| 18 |
+
yolo_model = YOLO("best.pt")
|
| 19 |
names = yolo_model.names
|
| 20 |
|
| 21 |
def encode_image_to_base64(image):
|
|
|
|
| 121 |
return process_video(video_path)
|
| 122 |
|
| 123 |
# β
Sample video file
|
| 124 |
+
sample_video_path = "vid4.mp4" # Make sure this file is available in the working directory
|
| 125 |
|
| 126 |
# β
Gradio UI setup with sample video
|
| 127 |
iface = gr.Interface(
|