Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,14 @@ def classify_video(video):
|
|
| 34 |
Smoke.append(i)
|
| 35 |
else:
|
| 36 |
Default.append(i)
|
| 37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
Description="An MobileNET model trained to classify Fire and Smoke through Videos"
|
| 39 |
Article="Created at jupyter NoteBook with GPU NVIDIA_GeForce_MX350"
|
| 40 |
gr.Interface(
|
|
|
|
| 34 |
Smoke.append(i)
|
| 35 |
else:
|
| 36 |
Default.append(i)
|
| 37 |
+
if len(Fire)>10 and len(Smoke)>8:
|
| 38 |
+
return f"Spotted {class_names[1]} and {class_names[2]}"
|
| 39 |
+
elif len(Fire)>10:
|
| 40 |
+
return f"Spotted {class_names[1]}"
|
| 41 |
+
elif len(Smoke)>8:
|
| 42 |
+
return f"Spotted {class_names[2]}"
|
| 43 |
+
else:
|
| 44 |
+
return f"Spotted {class_names[0]}"
|
| 45 |
Description="An MobileNET model trained to classify Fire and Smoke through Videos"
|
| 46 |
Article="Created at jupyter NoteBook with GPU NVIDIA_GeForce_MX350"
|
| 47 |
gr.Interface(
|