Aaron Thomas Mathew commited on
Commit
18ce2e2
·
verified ·
1 Parent(s): bf643ac

init-edit

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -3,25 +3,21 @@ import os
3
  import uuid
4
  import logging
5
  from git import Repo
6
- # Retrieve GitHub personal access token and configure repository URL
7
  GITHUB_PAT = os.getenv("GITHUB_PAT")
8
  REPO_URL = f"https://YOUR_USERNAME:{GITHUB_PAT}@github.com/aaronmat1905/DataCraftorSecured.git"
9
  REPO_DIRECTORY = "./DataCraftorSecured"
10
 
11
  try:
12
- # Clone the repository and set up imports
13
  logging.info("Cloning repository...")
14
  Repo.clone_from(REPO_URL, REPO_DIRECTORY)
15
  import sys
16
  sys.path.append(REPO_DIRECTORY)
17
  sys.path.append("DC old")
18
- # import iface
19
  from iface_latest import build_interface, data_model
20
 
21
  except Exception as e:
22
  logging.error(f"An error occurred while cloning repo or importing: {e}")
23
 
24
- # Initialize and launch the Gradio interface
25
  if __name__ == "__main__":
26
  iface = build_interface()
27
  iface.launch()
 
3
  import uuid
4
  import logging
5
  from git import Repo
 
6
  GITHUB_PAT = os.getenv("GITHUB_PAT")
7
  REPO_URL = f"https://YOUR_USERNAME:{GITHUB_PAT}@github.com/aaronmat1905/DataCraftorSecured.git"
8
  REPO_DIRECTORY = "./DataCraftorSecured"
9
 
10
  try:
 
11
  logging.info("Cloning repository...")
12
  Repo.clone_from(REPO_URL, REPO_DIRECTORY)
13
  import sys
14
  sys.path.append(REPO_DIRECTORY)
15
  sys.path.append("DC old")
 
16
  from iface_latest import build_interface, data_model
17
 
18
  except Exception as e:
19
  logging.error(f"An error occurred while cloning repo or importing: {e}")
20
 
 
21
  if __name__ == "__main__":
22
  iface = build_interface()
23
  iface.launch()