ReacherTN commited on
Commit
876f820
·
1 Parent(s): 6c46dd8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -1,18 +1,15 @@
1
  import gradio as gr
2
  import requests
3
  from predict import image_inference,video_inference
4
-
5
  import gdown
6
 
7
 
8
  path = [['image.jpg'],]
9
- video_path = [['video_.mp4']]
10
  # downloading vide example
11
  url = "https://drive.google.com/file/d/1reSYnmarjdmDfR1QFK3NBHzJ5q_8Kyia/view?usp=share_link"
12
  output = "video_.mp4"
13
  gdown.download(url, output, quiet=False, fuzzy=True)
14
-
15
- #image = cv2.imwrite('output.jpg', show_preds_image(path))
16
  inputs_image = [
17
  gr.components.Image(type="filepath", label="Input Image"),
18
  ]
@@ -38,7 +35,8 @@ interface_video = gr.Interface(
38
  inputs=inputs_video,
39
  outputs=outputs_video,
40
  title="Arab Sign Language Detection app",
41
- examples=video_path
 
42
  )
43
  gr.TabbedInterface(
44
  [image_interface, interface_video],
 
1
  import gradio as gr
2
  import requests
3
  from predict import image_inference,video_inference
 
4
  import gdown
5
 
6
 
7
  path = [['image.jpg'],]
8
+ video_path = [['video_.mp4'],]
9
  # downloading vide example
10
  url = "https://drive.google.com/file/d/1reSYnmarjdmDfR1QFK3NBHzJ5q_8Kyia/view?usp=share_link"
11
  output = "video_.mp4"
12
  gdown.download(url, output, quiet=False, fuzzy=True)
 
 
13
  inputs_image = [
14
  gr.components.Image(type="filepath", label="Input Image"),
15
  ]
 
35
  inputs=inputs_video,
36
  outputs=outputs_video,
37
  title="Arab Sign Language Detection app",
38
+ examples=video_path,
39
+ cache_examples=False,
40
  )
41
  gr.TabbedInterface(
42
  [image_interface, interface_video],