Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,9 +2,8 @@ import cv2
|
|
| 2 |
import timm
|
| 3 |
import numpy as np
|
| 4 |
import tensorflow as tf
|
| 5 |
-
from
|
| 6 |
-
from
|
| 7 |
-
from tensorflow.keras import Model
|
| 8 |
import streamlit as st
|
| 9 |
from collections import deque
|
| 10 |
import pandas as pd
|
|
@@ -12,6 +11,11 @@ import base64
|
|
| 12 |
from Crypto.Cipher import AES
|
| 13 |
import torch
|
| 14 |
import torch.nn as nn
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
# Set page title and favicon
|
| 17 |
st.set_page_config(page_title="Violence Detection and Analysis App", page_icon=":boom:")
|
|
|
|
| 2 |
import timm
|
| 3 |
import numpy as np
|
| 4 |
import tensorflow as tf
|
| 5 |
+
from tf.keras.models import load_model
|
| 6 |
+
from tf.keras.layers import Input, Conv2D, BatchNormalization, ReLU, DepthwiseConv2D, GlobalAveragePooling2D, Dense
|
|
|
|
| 7 |
import streamlit as st
|
| 8 |
from collections import deque
|
| 9 |
import pandas as pd
|
|
|
|
| 11 |
from Crypto.Cipher import AES
|
| 12 |
import torch
|
| 13 |
import torch.nn as nn
|
| 14 |
+
from ultralytics import YOLO
|
| 15 |
+
import csv
|
| 16 |
+
from Crypto.Cipher import AES
|
| 17 |
+
from Crypto.Random import get_random_bytes
|
| 18 |
+
|
| 19 |
|
| 20 |
# Set page title and favicon
|
| 21 |
st.set_page_config(page_title="Violence Detection and Analysis App", page_icon=":boom:")
|