princeml commited on
Commit
f7bf76e
1 Parent(s): 1a0002b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -20
app.py CHANGED
@@ -151,23 +151,3 @@ if __name__ == "__main__":
151
  main()
152
 
153
 
154
-
155
- # import tensorflow as tf
156
- import cv2
157
- import numpy as np
158
- # from glob import glob
159
- # from models import Yolov4
160
- import gradio as gr
161
- # model = Yolov4(weight_path="yolov4.weights", class_name_path='coco_classes.txt')
162
- def gradio_wrapper(img):
163
- global model
164
- #print(np.shape(img))
165
- # results = model.predict(img)
166
- # return results[0]
167
- demo = gr.Interface(
168
- gradio_wrapper,
169
- #gr.Image(source="webcam", streaming=True, flip=True),
170
- gr.Image(source="webcam", streaming=True),
171
- "image",
172
- live=True)
173
- demo.launch()
 
151
  main()
152
 
153