Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,12 @@
|
|
1 |
import cv2
|
2 |
import spaces
|
3 |
import numpy as np
|
4 |
-
|
5 |
import gradio as gr
|
6 |
import tempfile
|
|
|
7 |
print(tf.config.list_physical_devices("GPU"))
|
8 |
-
model = load_model('cnn.keras')
|
9 |
|
10 |
# Function to preprocess each frame
|
11 |
def preprocess_frame(frame):
|
|
|
1 |
import cv2
|
2 |
import spaces
|
3 |
import numpy as np
|
4 |
+
import tensorflow as tf
|
5 |
import gradio as gr
|
6 |
import tempfile
|
7 |
+
|
8 |
print(tf.config.list_physical_devices("GPU"))
|
9 |
+
model = tf.keras.models.load_model('cnn.keras')
|
10 |
|
11 |
# Function to preprocess each frame
|
12 |
def preprocess_frame(frame):
|