Spaces:
Running
Running
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import subprocess
|
| 3 |
+
from huggingface_hub import snapshot_download
|
| 4 |
+
|
| 5 |
+
snapshot_download(
|
| 6 |
+
repo_id="notkosmo/quicksearch-private-files",
|
| 7 |
+
local_dir="my_app",
|
| 8 |
+
token=os.environ.get("HF_TOKEN")
|
| 9 |
+
)
|
| 10 |
+
|
| 11 |
+
os.chdir("my_app")
|
| 12 |
+
|
| 13 |
+
subprocess.run(["pip", "install", "-r", "requirements.txt"])
|
| 14 |
+
|
| 15 |
+
subprocess.run(["python", "app.py"])
|