Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,8 @@ import spaces
|
|
2 |
import torch
|
3 |
torch.jit.script = lambda f: f
|
4 |
|
|
|
|
|
5 |
import sys
|
6 |
sys.path.append('./')
|
7 |
import argparse
|
@@ -693,7 +695,7 @@ if __name__ == '__main__':
|
|
693 |
'height': height,
|
694 |
'width': width,
|
695 |
}
|
696 |
-
|
697 |
device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
|
698 |
main(device, args.segment_type)
|
699 |
|
|
|
2 |
import torch
|
3 |
torch.jit.script = lambda f: f
|
4 |
|
5 |
+
from download import OMG_download
|
6 |
+
|
7 |
import sys
|
8 |
sys.path.append('./')
|
9 |
import argparse
|
|
|
695 |
'height': height,
|
696 |
'width': width,
|
697 |
}
|
698 |
+
download = OMG_download()
|
699 |
device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
|
700 |
main(device, args.segment_type)
|
701 |
|