kkzkkakky commited on
Commit
dea8b4b
·
verified ·
1 Parent(s): 1ba71e9

make secret for private library

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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}@github.com/neoAI-inc/[email protected]"],
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: