Spaces:
Running
on
Zero
Running
on
Zero
Fix ui
Browse files
app.py
CHANGED
|
@@ -31,6 +31,10 @@ model.eval()
|
|
| 31 |
|
| 32 |
# βββ VISUAL THEME (Dark) βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 33 |
CSS = """
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
:root{
|
| 35 |
--bg:#0b1020; --bg-2:#10172e; --panel:#141b34; --panel-2:#0f172a;
|
| 36 |
--border:#263154; --fg:#e7ecf5; --muted:#b9c2d3; --placeholder:#7c8195;
|
|
@@ -209,11 +213,11 @@ def infer_chatts_stream(prompt: str, csv_file, use_default):
|
|
| 209 |
|
| 210 |
# βββ EXAMPLES (semantic names) βββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 211 |
EXAMPLE_PROMPTS = {
|
| 212 |
-
"π Detect Spikes": "Identify all spikes in each series
|
| 213 |
-
"π Trend & Seasonality": "Describe the trend and seasonality for the provided time series
|
| 214 |
-
"π Compare Metrics": "Compare the two series
|
| 215 |
-
"β‘ Local Change Analysis": "Find intervals with >10% rise or drop relative to the prior 20 points for
|
| 216 |
-
"π Correlation Strength": "Quantify Pearson correlation between each pair of series
|
| 217 |
}
|
| 218 |
|
| 219 |
# βββ UI ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
|
|
| 31 |
|
| 32 |
# βββ VISUAL THEME (Dark) βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 33 |
CSS = """
|
| 34 |
+
.gradio-container {
|
| 35 |
+
box-shadow: none !important;
|
| 36 |
+
border: none !important;
|
| 37 |
+
}
|
| 38 |
:root{
|
| 39 |
--bg:#0b1020; --bg-2:#10172e; --panel:#141b34; --panel-2:#0f172a;
|
| 40 |
--border:#263154; --fg:#e7ecf5; --muted:#b9c2d3; --placeholder:#7c8195;
|
|
|
|
| 213 |
|
| 214 |
# βββ EXAMPLES (semantic names) βββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 215 |
EXAMPLE_PROMPTS = {
|
| 216 |
+
"π Detect Spikes": "Identify all spikes in each series and report timestamps and magnitudes. Explain briefly.",
|
| 217 |
+
"π Trend & Seasonality": "Describe the trend and seasonality for the provided time series TS1.",
|
| 218 |
+
"π Compare Metrics": "Compare the two series (TS1 and TS2). Are there lagged correlations? Estimate the lag and correlation strength.",
|
| 219 |
+
"β‘ Local Change Analysis": "Find intervals with >10% rise or drop relative to the prior 20 points for TS1. Return intervals and reasons.",
|
| 220 |
+
"π Correlation Strength": "Quantify Pearson correlation between each pair of series (TS1 and TS2) and highlight the strongest positive/negative pairs."
|
| 221 |
}
|
| 222 |
|
| 223 |
# βββ UI ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|