Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from git import Repo
|
| 2 |
+
import os
|
| 3 |
+
|
| 4 |
+
GITHUB_REPO_URL = os.environ.get("GITHUB_REPO_URL")
|
| 5 |
+
# git@github.com:coffeebeansdev/AI_Interviewer.git
|
| 6 |
+
|
| 7 |
+
if not os.path.exists('repo_directory'):
|
| 8 |
+
Repo.clone_from(GITHUB_REPO_URL, 'repo_directory')
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
print(os.system('ls -l repo_directory/')) # testing purpose
|
| 12 |
+
# print(os.system('ls -l repo_directory/hugging_spaces')) # testing purpose
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
# from repo_directory.network18.app import main
|
| 17 |
+
from repo_directory.PersonalityChatbot.app import *
|
| 18 |
+
|
| 19 |
+
main()
|