Ahsen Khaliq
commited on
Commit
·
c84dd6b
1
Parent(s):
2d43640
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import os
|
2 |
os.system("git clone https://github.com/facebookresearch/omnivore.git")
|
|
|
3 |
import json
|
4 |
from typing import List
|
5 |
|
@@ -10,6 +11,8 @@ import torchvision.transforms as T
|
|
10 |
from PIL import Image
|
11 |
from torchvision.transforms._transforms_video import NormalizeVideo
|
12 |
|
|
|
|
|
13 |
# Device on which to run the model
|
14 |
# Set to cuda to load on GPU
|
15 |
device = "cpu"
|
|
|
1 |
import os
|
2 |
os.system("git clone https://github.com/facebookresearch/omnivore.git")
|
3 |
+
os.chdir("omnivore")
|
4 |
import json
|
5 |
from typing import List
|
6 |
|
|
|
11 |
from PIL import Image
|
12 |
from torchvision.transforms._transforms_video import NormalizeVideo
|
13 |
|
14 |
+
import gradio as gr
|
15 |
+
|
16 |
# Device on which to run the model
|
17 |
# Set to cuda to load on GPU
|
18 |
device = "cpu"
|