kdevoe commited on
Commit
7b9e8c8
·
verified ·
1 Parent(s): eceb91c

Adding missing tensorflow import

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import gradio as gr
2
  import numpy as np
3
  import cv2
 
4
  from tensorflow.keras.models import load_model
5
 
6
  IMG_HEIGHT = 96
@@ -62,6 +63,6 @@ with gr.Blocks(css=css) as demo:
62
  input_img = gr.Image(sources=["webcam"], type="numpy", streaming=True, label="Webcam Input")
63
  output_label = gr.Label(label="Predicted ASL Sign")
64
 
65
- input_img.stream(predict_asl, [input_img], [output_label], time_limit=30, stream_every=0.1)
66
 
67
  demo.launch()
 
1
  import gradio as gr
2
  import numpy as np
3
  import cv2
4
+ import tensorflow as tf
5
  from tensorflow.keras.models import load_model
6
 
7
  IMG_HEIGHT = 96
 
63
  input_img = gr.Image(sources=["webcam"], type="numpy", streaming=True, label="Webcam Input")
64
  output_label = gr.Label(label="Predicted ASL Sign")
65
 
66
+ input_img.stream(predict_asl, [input_img], [output_label], time_limit=300, stream_every=0.1)
67
 
68
  demo.launch()