Spaces:
Running
Running
tracinginsights
commited on
Commit
•
9a959bf
1
Parent(s):
a56a47e
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
from git import Repo
|
2 |
import os
|
3 |
import streamlit as st
|
4 |
-
|
5 |
|
6 |
st.set_page_config(
|
7 |
page_title="TRACING INSIGHTS",
|
@@ -20,3 +20,7 @@ GITHUB_PAT = os.environ['GITHUB']
|
|
20 |
if not os.path.exists('repo_directory'):
|
21 |
Repo.clone_from(f'https://tracinginsights:{GITHUB_PAT}@github.com/TracingInsights/F1_analysis.git', 'repo_directory' )
|
22 |
|
|
|
|
|
|
|
|
|
|
1 |
from git import Repo
|
2 |
import os
|
3 |
import streamlit as st
|
4 |
+
import kaggle
|
5 |
|
6 |
st.set_page_config(
|
7 |
page_title="TRACING INSIGHTS",
|
|
|
20 |
if not os.path.exists('repo_directory'):
|
21 |
Repo.clone_from(f'https://tracinginsights:{GITHUB_PAT}@github.com/TracingInsights/F1_analysis.git', 'repo_directory' )
|
22 |
|
23 |
+
def download_dataset():
|
24 |
+
kaggle.api.authenticate()
|
25 |
+
kaggle.api.dataset_download_files('jtrotman/formula-1-race-events', path='formula-1-race-events', unzip=True)
|
26 |
+
|