aaronmat1905 commited on
Commit
fa08817
·
verified ·
1 Parent(s): f03646e
Files changed (1) hide show
  1. app.py +27 -0
app.py ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ from git import Repo
3
+
4
+ GITHUB_PAT = os.getenv("GITHUB_PAT")
5
+
6
+ REPO_URL = f"https://YOUR_USERNAME:{GITHUB_PAT}@github.com/aaronmat1905/DataCraftorSecured.git"
7
+ REPO_DIRECTORY = "./DataCraftorSecured"
8
+
9
+ try:
10
+ Repo.clone_from(REPO_URL, REPO_DIRECTORY)
11
+
12
+ import sys
13
+ sys.path.append(REPO_DIRECTORY)
14
+
15
+ import config
16
+ import interface
17
+ import chatbot
18
+ import data_utils
19
+
20
+ except Exception as e:
21
+ print(f"An error occurred: {e}")
22
+
23
+ from interface import build_interface
24
+
25
+ if __name__ == "__main__":
26
+ demo = build_interface()
27
+ demo.launch()