Anshu13 commited on
Commit
956f94a
·
verified ·
1 Parent(s): d48d2dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -36,9 +36,9 @@ def classify_video(video):
36
  else:
37
  Default.append(i)
38
  if len(Fire)>5 and len(Smoke)>5:
39
- return f"Fire and Smoke"
40
  else:
41
- return f"Spotted {class_names[max(predictions)]}"
42
  Description="An MobileNET model trained to classify Fire and Smoke through Videos"
43
  Article="Created at jupyter NoteBook with GPU NVIDIA_GeForce_MX350"
44
  gr.Interface(
 
36
  else:
37
  Default.append(i)
38
  if len(Fire)>5 and len(Smoke)>5:
39
+ return f"Fire and Smoke Spotted"
40
  else:
41
+ return class_names[max(predictions)
42
  Description="An MobileNET model trained to classify Fire and Smoke through Videos"
43
  Article="Created at jupyter NoteBook with GPU NVIDIA_GeForce_MX350"
44
  gr.Interface(