Spaces:
Sleeping
Sleeping
Delete app.py
Browse files
app.py
DELETED
|
@@ -1,20 +0,0 @@
|
|
| 1 |
-
import os
|
| 2 |
-
import subprocess
|
| 3 |
-
from huggingface_hub import snapshot_download
|
| 4 |
-
|
| 5 |
-
# 1. Securely download all your private files into a folder called 'my_app'
|
| 6 |
-
snapshot_download(
|
| 7 |
-
repo_id="notkosmo/quicksearch-private-files", # Replace with your private dataset name!
|
| 8 |
-
repo_type="space",
|
| 9 |
-
local_dir="my_app",
|
| 10 |
-
token=os.environ.get("HF_TOKEN")
|
| 11 |
-
)
|
| 12 |
-
|
| 13 |
-
# 2. Change into that directory where your real requirements and app live
|
| 14 |
-
os.chdir("my_app")
|
| 15 |
-
|
| 16 |
-
# 3. Install your actual private requirements
|
| 17 |
-
subprocess.run(["pip", "install", "-r", "requirements.txt"])
|
| 18 |
-
|
| 19 |
-
# 4. Boot up the real application!
|
| 20 |
-
subprocess.run(["python", "app.py"])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|