Spaces:
Running
Running
Commit
·
e8a3017
1
Parent(s):
a62bff6
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from git import Repo
|
| 2 |
+
import os
|
| 3 |
+
import streamlit as st
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
GITHUB_PAT = os.environ['GITHUB']
|
| 7 |
+
|
| 8 |
+
if not os.path.exists('repo_directory'):
|
| 9 |
+
Repo.clone_from(f'https://tracinginsights:{GITHUB_PAT}@github.com/TracingInsights/F1_analysis.git', 'repo_directory' )
|
| 10 |
+
|
| 11 |
+
from repo_directory import button
|
| 12 |
+
from repo_directory import Overtakes
|
| 13 |
+
|
| 14 |
+
option = Overtakes.select_gp()
|
| 15 |
+
app.plot_recent_overtakes(option)
|
| 16 |
+
app.plot_full_season()
|
| 17 |
+
app.plot_circuits()
|