KAHRAMAN42 commited on
Commit
d145c5e
·
verified ·
1 Parent(s): f9b1aab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -33,13 +33,12 @@ def object_detection():
33
  cv2.destroyAllWindows()
34
 
35
 
36
- iface = gr.Interface(
37
- fn=object_detection,
38
- inputs="text",
39
- outputs="text",
40
- layout="vertical",
41
- title="Sığır Object Detection",
42
- description="Bir sığır videosu bırakın ve videoda ki sığırların yakalayın."
43
- )
44
 
45
  iface.launch(share=True)
 
33
  cv2.destroyAllWindows()
34
 
35
 
36
+ iface = gr.Interface(object_detection,
37
+ gr.Video(),
38
+ "playable_video",
39
+ examples=[
40
+ os.path.join(os.path.abspath(''),
41
+ "video/video_sample.mp4")],
42
+ cache_examples=True)
 
43
 
44
  iface.launch(share=True)