RakanAlsheraiwi commited on
Commit
7d6403f
1 Parent(s): e1a79d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -6
app.py CHANGED
@@ -86,11 +86,6 @@ image_interface = gr.Interface(
86
  examples=['assets/MessiVsAlhilal.jpg', 'assets/Manhattan002_0.webp'] # إضافة الأمثلة هنا
87
 
88
  )
89
-
90
- # إضافة أمثلة للواجهة
91
- image_interface.examples = ['assets/MessiVsAlhilal.jpg', 'assets/Manhattan002_0.webp']
92
-
93
- # واجهة فيديو
94
  video_interface = gr.Interface(
95
  fn=detect_and_draw_video,
96
  inputs=gr.Video(label="Upload Video"),
@@ -99,6 +94,5 @@ video_interface = gr.Interface(
99
  description="Upload a video to see the objects detected and their counts."
100
  )
101
 
102
- # دمج الواجهات
103
  app = gr.TabbedInterface([image_interface, video_interface], ["Image Detection", "Video Detection"])
104
  app.launch(debug=True)
 
86
  examples=['assets/MessiVsAlhilal.jpg', 'assets/Manhattan002_0.webp'] # إضافة الأمثلة هنا
87
 
88
  )
 
 
 
 
 
89
  video_interface = gr.Interface(
90
  fn=detect_and_draw_video,
91
  inputs=gr.Video(label="Upload Video"),
 
94
  description="Upload a video to see the objects detected and their counts."
95
  )
96
 
 
97
  app = gr.TabbedInterface([image_interface, video_interface], ["Image Detection", "Video Detection"])
98
  app.launch(debug=True)