fcakyon commited on
Commit
1b70000
β€’
1 Parent(s): db0445e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -12,19 +12,19 @@ video_model = VideoModel.from_transformers("facebook/timesformer-base-finetuned-
12
 
13
 
14
  examples = [
15
- ["https://youtu.be/huAJ9dC5lmI"],
16
- ["https://youtu.be/vcWt6u5HTg"],
17
- ["https://youtu.be/-3kZSi5qjRM"],
18
- ["https://youtu.be/-6usjfP8hys"],
19
- ["https://youtu.be/BDHub0gBGtc"],
20
- #["https://www.youtube.com/watch?v=B9ea7YyCP6E"],
21
- #["https://www.youtube.com/watch?v=BBkpaeJBKmk"],
22
- #["https://www.youtube.com/watch?v=BBqU8Apee_g"],
23
- #["https://www.youtube.com/watch?v=B8OdMwVwyXc"],
24
- #["https://www.youtube.com/watch?v=I7cwq6_4QtM"],
25
- #["https://www.youtube.com/watch?v=Z0mJDXpNhYA"],
26
- #["https://www.youtube.com/watch?v=QkQQjFGnZlg"],
27
- #["https://www.youtube.com/watch?v=IQaoRUQif14"],
28
  ]
29
 
30
 
@@ -84,7 +84,7 @@ with app:
84
  youtube_url,
85
  [predictions, video_gif],
86
  fn=predict,
87
- cache_examples=False,
88
  )
89
 
90
  predict_btn.click(predict, inputs=youtube_url, outputs=[predictions, video_gif])
 
12
 
13
 
14
  examples = [
15
+ ["https://www.youtube.com/watch?v=huAJ9dC5lmI"],
16
+ ["https://www.youtube.com/watch?v=wvcWt6u5HTg"],
17
+ ["https://www.youtube.com/watch?v=-3kZSi5qjRM"],
18
+ ["https://www.youtube.com/watch?v=-6usjfP8hys"],
19
+ ["https://www.youtube.com/watch?v=BDHub0gBGtc"],
20
+ ["https://www.youtube.com/watch?v=B9ea7YyCP6E"],
21
+ ["https://www.youtube.com/watch?v=BBkpaeJBKmk"],
22
+ ["https://www.youtube.com/watch?v=BBqU8Apee_g"],
23
+ ["https://www.youtube.com/watch?v=B8OdMwVwyXc"],
24
+ ["https://www.youtube.com/watch?v=I7cwq6_4QtM"],
25
+ ["https://www.youtube.com/watch?v=Z0mJDXpNhYA"],
26
+ ["https://www.youtube.com/watch?v=QkQQjFGnZlg"],
27
+ ["https://www.youtube.com/watch?v=IQaoRUQif14"],
28
  ]
29
 
30
 
 
84
  youtube_url,
85
  [predictions, video_gif],
86
  fn=predict,
87
+ cache_examples=True,
88
  )
89
 
90
  predict_btn.click(predict, inputs=youtube_url, outputs=[predictions, video_gif])