Spaces:
Sleeping
Sleeping
File size: 642 Bytes
fa08817 888999d 4260f52 d17c28b fa08817 2b1cd4c 44aa258 fa08817 d17c28b 0a85422 fa08817 4260f52 f207559 8b32e3e bb929f0 fa08817 d17c28b a5fdf71 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import os
import uuid
import logging
from git import Repo
GITHUB_PAT = os.getenv("GITHUB_PAT")
REPO_URL = f"https://YOUR_USERNAME:{GITHUB_PAT}@github.com/aaronmat1905/DataCraftorSecured.git"
REPO_DIRECTORY = "./DataCraftorSecured"
try:
logging.info("Cloning repository...")
Repo.clone_from(REPO_URL, REPO_DIRECTORY)
import sys
sys.path.append(REPO_DIRECTORY)
sys.path.append("DC old")
from iface_latest import build_interface, data_model
except Exception as e:
logging.error(f"An error occurred while cloning repo or importing: {e}")
if __name__ == "__main__":
iface = build_interface()
iface.launch() |