Spaces:
Runtime error
Runtime error
piperod
commited on
Commit
•
ff9df39
1
Parent(s):
0cafd3f
updating gitignore
Browse files- .gitignore +3 -0
- app.py +6 -0
.gitignore
CHANGED
@@ -4,11 +4,14 @@ __pycache__/
|
|
4 |
*$py.class
|
5 |
*venv*
|
6 |
.env
|
|
|
7 |
# C extensions
|
8 |
*.so
|
9 |
env
|
10 |
env/
|
11 |
model/
|
|
|
|
|
12 |
# Distribution / packaging
|
13 |
.Python
|
14 |
build/
|
|
|
4 |
*$py.class
|
5 |
*venv*
|
6 |
.env
|
7 |
+
tmp*
|
8 |
# C extensions
|
9 |
*.so
|
10 |
env
|
11 |
env/
|
12 |
model/
|
13 |
+
test/
|
14 |
+
videos_example/
|
15 |
# Distribution / packaging
|
16 |
.Python
|
17 |
build/
|
app.py
CHANGED
@@ -2,6 +2,12 @@ import gradio as gr
|
|
2 |
import os
|
3 |
import subprocess
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
if os.getenv('SYSTEM') == 'spaces':
|
7 |
|
|
|
2 |
import os
|
3 |
import subprocess
|
4 |
|
5 |
+
from huggingface_hub import snapshot_download
|
6 |
+
|
7 |
+
|
8 |
+
REPO_ID='piperod91/videos_examples'
|
9 |
+
snapshot_download(repo_id=REPO_ID, token= os.environ.get('SHARK_MODEL'),repo_type='dataset',local_dir='videos_example')
|
10 |
+
|
11 |
|
12 |
if os.getenv('SYSTEM') == 'spaces':
|
13 |
|