elucidator8918 commited on
Commit
89530ea
·
verified ·
1 Parent(s): 4b7f092

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,11 +1,12 @@
1
  import cv2
2
  import spaces
3
  import numpy as np
4
- from tensorflow.keras.models import load_model
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):