Spaces:
Running
Running
Commit
·
a6fd034
1
Parent(s):
9a959bf
Update pages/Race_Trace.py
Browse files- pages/Race_Trace.py +7 -5
pages/Race_Trace.py
CHANGED
|
@@ -2,14 +2,16 @@ from repo_directory import button
|
|
| 2 |
import streamlit as st
|
| 3 |
from repo_directory import Race_Trace
|
| 4 |
import pandas as pd
|
| 5 |
-
import kaggle
|
| 6 |
import os
|
|
|
|
| 7 |
|
| 8 |
-
|
| 9 |
-
os.environ['
|
|
|
|
| 10 |
|
| 11 |
-
kaggle.api.authenticate()
|
| 12 |
-
kaggle.api.dataset_download_files('jtrotman/formula-1-race-events', path='formula-1-race-events', unzip=True)
|
| 13 |
|
| 14 |
|
| 15 |
Race_Trace.get_latest_ergast()
|
|
|
|
| 2 |
import streamlit as st
|
| 3 |
from repo_directory import Race_Trace
|
| 4 |
import pandas as pd
|
| 5 |
+
#import kaggle
|
| 6 |
import os
|
| 7 |
+
import app
|
| 8 |
|
| 9 |
+
app.download_dataset()
|
| 10 |
+
# os.environ['KAGGLE_USERNAME'] = "tracinginsights"
|
| 11 |
+
# os.environ['KAGGLE_KEY'] = "150b8c43951e781f9e8c5eb4246ed324"
|
| 12 |
|
| 13 |
+
# kaggle.api.authenticate()
|
| 14 |
+
# kaggle.api.dataset_download_files('jtrotman/formula-1-race-events', path='formula-1-race-events', unzip=True)
|
| 15 |
|
| 16 |
|
| 17 |
Race_Trace.get_latest_ergast()
|