DataCraftor / app.py
aaronmat1905's picture
init-edit
18ce2e2 verified
raw
history blame contribute delete
642 Bytes
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()