make secret for private library
Browse files
app.py
CHANGED
@@ -9,10 +9,11 @@ import subprocess
|
|
9 |
def load_private_code():
|
10 |
token = os.environ.get("TOKEN", "")
|
11 |
repo_id = os.environ.get("REPO_ID", "")
|
|
|
12 |
if token:
|
13 |
try:
|
14 |
subprocess.run(
|
15 |
-
["pip", "install", f"git+https://{token}@
|
16 |
check=True
|
17 |
)
|
18 |
except subprocess.CalledProcessError as e:
|
|
|
9 |
def load_private_code():
|
10 |
token = os.environ.get("TOKEN", "")
|
11 |
repo_id = os.environ.get("REPO_ID", "")
|
12 |
+
private_library_url = os.environ.get("PRIVATE_LIBRARY_URL", "")
|
13 |
if token:
|
14 |
try:
|
15 |
subprocess.run(
|
16 |
+
["pip", "install", f"git+https://{token}@{private_library_url}"],
|
17 |
check=True
|
18 |
)
|
19 |
except subprocess.CalledProcessError as e:
|