File size: 567 Bytes
fa08817
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import os
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:
    Repo.clone_from(REPO_URL, REPO_DIRECTORY)

    import sys
    sys.path.append(REPO_DIRECTORY) 

    import config
    import interface
    import chatbot
    import data_utils

except Exception as e:
    print(f"An error occurred: {e}")

from interface import build_interface

if __name__ == "__main__":
    demo = build_interface()
    demo.launch()