Update app.py
Browse files
app.py
CHANGED
|
@@ -425,13 +425,14 @@ def update_column_dropdowns(df, suggestions):
|
|
| 425 |
with gr.Blocks(title="F1 Telemetry Data Analyzer", theme=gr.themes.Soft()) as demo:
|
| 426 |
gr.Markdown("# F1 Telemetry Data Analyzer")
|
| 427 |
gr.Markdown("Advanced AI-powered analysis of Formula 1 telemetry data with anomaly detection and predictive modeling.")
|
|
|
|
| 428 |
|
| 429 |
# Store dataframe in state
|
| 430 |
uploaded_df = gr.State(None)
|
| 431 |
|
| 432 |
-
with gr.Tab("Upload Data"):
|
| 433 |
-
gr.Markdown("### Upload your telemetry data files")
|
| 434 |
-
gr.Markdown("**Supported formats:** CSV, Excel (.xlsx/.xls), JSON")
|
| 435 |
|
| 436 |
with gr.Row():
|
| 437 |
file_upload = gr.File(
|
|
@@ -489,8 +490,9 @@ with gr.Blocks(title="F1 Telemetry Data Analyzer", theme=gr.themes.Soft()) as de
|
|
| 489 |
)
|
| 490 |
|
| 491 |
with gr.Tab("Sample Data Analysis"):
|
| 492 |
-
gr.Markdown("### Generate and analyze
|
| 493 |
-
|
|
|
|
| 494 |
|
| 495 |
with gr.Row():
|
| 496 |
with gr.Column(scale=2):
|
|
@@ -539,6 +541,12 @@ with gr.Blocks(title="F1 Telemetry Data Analyzer", theme=gr.themes.Soft()) as de
|
|
| 539 |
- Data validation and cleaning
|
| 540 |
- Flexible data structure handling
|
| 541 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 542 |
**Anomaly Detection:**
|
| 543 |
- Uses Isolation Forest algorithm to detect unusual patterns in telemetry data
|
| 544 |
- Identifies potential mechanical issues or performance anomalies
|
|
|
|
| 425 |
with gr.Blocks(title="F1 Telemetry Data Analyzer", theme=gr.themes.Soft()) as demo:
|
| 426 |
gr.Markdown("# F1 Telemetry Data Analyzer")
|
| 427 |
gr.Markdown("Advanced AI-powered analysis of Formula 1 telemetry data with anomaly detection and predictive modeling.")
|
| 428 |
+
gr.Markdown("**Choose your data source:** Upload your own telemetry files or generate synthetic data for testing!")
|
| 429 |
|
| 430 |
# Store dataframe in state
|
| 431 |
uploaded_df = gr.State(None)
|
| 432 |
|
| 433 |
+
with gr.Tab("Upload Real Data"):
|
| 434 |
+
gr.Markdown("### Upload your own telemetry data files")
|
| 435 |
+
gr.Markdown("**Supported formats:** CSV, Excel (.xlsx/.xls), JSON | **Perfect for:** Real racing data, simulator exports, custom datasets")
|
| 436 |
|
| 437 |
with gr.Row():
|
| 438 |
file_upload = gr.File(
|
|
|
|
| 490 |
)
|
| 491 |
|
| 492 |
with gr.Tab("Sample Data Analysis"):
|
| 493 |
+
gr.Markdown("### Generate and analyze synthetic telemetry data")
|
| 494 |
+
gr.Markdown("**Perfect for testing and learning!** Generate realistic F1 telemetry data with built-in anomalies and patterns.")
|
| 495 |
+
analyze_btn = gr.Button("Generate & Analyze Sample Data", variant="primary")
|
| 496 |
|
| 497 |
with gr.Row():
|
| 498 |
with gr.Column(scale=2):
|
|
|
|
| 541 |
- Data validation and cleaning
|
| 542 |
- Flexible data structure handling
|
| 543 |
|
| 544 |
+
**Synthetic Data Generation:**
|
| 545 |
+
- Generate realistic F1 telemetry data for testing
|
| 546 |
+
- Built-in anomalies and realistic correlations
|
| 547 |
+
- Perfect for learning and demonstration
|
| 548 |
+
- No data upload required
|
| 549 |
+
|
| 550 |
**Anomaly Detection:**
|
| 551 |
- Uses Isolation Forest algorithm to detect unusual patterns in telemetry data
|
| 552 |
- Identifies potential mechanical issues or performance anomalies
|