Spaces:
Runtime error
Runtime error
tracinginsights
commited on
Commit
•
bc0973c
1
Parent(s):
29a25f9
Update main.py
Browse files
main.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
|
2 |
-
|
3 |
|
4 |
-
|
5 |
|
6 |
-
|
7 |
-
|
8 |
|
9 |
-
|
|
|
1 |
+
from git import Repo
|
2 |
+
import os
|
3 |
|
4 |
+
GITHUB_PAT = os.environ['GITHUB']
|
5 |
|
6 |
+
if not os.path.exists('repo_directory'):
|
7 |
+
Repo.clone_from(f'https://tracinginsights:{GITHUB_PAT}@github.com/TracingInsights/fastf1api.git', 'repo_directory' )
|
8 |
|
9 |
+
from repo_directory import *
|