Zynaly commited on
Commit
0cea52d
·
verified ·
1 Parent(s): 47d364f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -8
app.py CHANGED
@@ -42,14 +42,6 @@ ACCIDENT_IOU_THRESHOLD = 0.55
42
  fire_model = YOLO("fire.pt", task="detect") # Fire detection model
43
  accident_model = YOLO("best.pt", task="detect") # Accident detection model
44
 
45
- # Function to save image and return its URL
46
- from huggingface_hub import upload_file
47
- import os
48
- from datetime import datetime
49
- import uuid
50
-
51
- HF_TOKEN = os.getenv("HF_TOKEN")
52
- REPO_ID = "Zynaly/Surveillance-Intelligent-Camera" # Replace with your actual repo ID
53
 
54
  def save_image(image, incident_type):
55
  try:
 
42
  fire_model = YOLO("fire.pt", task="detect") # Fire detection model
43
  accident_model = YOLO("best.pt", task="detect") # Accident detection model
44
 
 
 
 
 
 
 
 
 
45
 
46
  def save_image(image, incident_type):
47
  try: