Spaces:
Sleeping
Sleeping
import os | |
import uuid | |
from git import Repo | |
# Retrieve GitHub personal access token and configure repository URL | |
GITHUB_PAT = os.getenv("GITHUB_PAT") | |
REPO_URL = f"https://YOUR_USERNAME:{GITHUB_PAT}@github.com/aaronmat1905/DataCraftorSecured.git" | |
REPO_DIRECTORY = "./DataCraftorSecured" | |
try: | |
# Clone the repository and set up imports | |
Repo.clone_from(REPO_URL, REPO_DIRECTORY) | |
import sys | |
sys.path.append(REPO_DIRECTORY) | |
import interface | |
except Exception as e: | |
print(f"An error occurred: {e}") | |
from interface import build_interface, data_model | |
if __name__ == "__main__": | |
demo = build_interface(session_id) | |
demo.launch() | |