Spaces:
Runtime error
Runtime error
Aaron Thomas Mathew commited on
init
Browse files
app.py
CHANGED
|
@@ -6,14 +6,23 @@ from git import Repo
|
|
| 6 |
GITHUB_PAT = os.getenv("GITHUB_PAT")
|
| 7 |
REPO_URL = f"https://YOUR_USERNAME:{GITHUB_PAT}@github.com/aaronmat1905/DataCraftorSecured.git"
|
| 8 |
REPO_DIRECTORY = "./DataCraftorSecured"
|
| 9 |
-
|
| 10 |
|
| 11 |
try:
|
| 12 |
-
|
|
|
|
|
|
|
| 13 |
import sys
|
| 14 |
sys.path.append(REPO_DIRECTORY)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
except Exception as e:
|
| 16 |
print(f"An error occurred: {e}")
|
|
|
|
|
|
|
| 17 |
|
| 18 |
session_id = uuid.uuid4()
|
| 19 |
|
|
|
|
| 6 |
GITHUB_PAT = os.getenv("GITHUB_PAT")
|
| 7 |
REPO_URL = f"https://YOUR_USERNAME:{GITHUB_PAT}@github.com/aaronmat1905/DataCraftorSecured.git"
|
| 8 |
REPO_DIRECTORY = "./DataCraftorSecured"
|
| 9 |
+
|
| 10 |
|
| 11 |
try:
|
| 12 |
+
if not os.path.exists(REPO_DIRECTORY):
|
| 13 |
+
Repo.clone_from(REPO_URL, REPO_DIRECTORY)
|
| 14 |
+
|
| 15 |
import sys
|
| 16 |
sys.path.append(REPO_DIRECTORY)
|
| 17 |
+
|
| 18 |
+
import config
|
| 19 |
+
import interface
|
| 20 |
+
import chatbot
|
| 21 |
+
import data_utils
|
| 22 |
except Exception as e:
|
| 23 |
print(f"An error occurred: {e}")
|
| 24 |
+
|
| 25 |
+
from interface import build_interface, data_model
|
| 26 |
|
| 27 |
session_id = uuid.uuid4()
|
| 28 |
|