Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -189,9 +189,9 @@ def create_vibecheck_results_ui():
|
|
189 |
# Bottom Row - Vibe Examples
|
190 |
with gr.Row():
|
191 |
with gr.Column():
|
192 |
-
gr.Markdown("
|
193 |
load_vibe_dropdown = gr.Dropdown(
|
194 |
-
label="Select a vibe to see examples",
|
195 |
choices=[],
|
196 |
interactive=True,
|
197 |
multiselect=False,
|
@@ -235,11 +235,9 @@ def create_vibecheck_results_ui():
|
|
235 |
|
236 |
if not results or "vibe_df" not in results:
|
237 |
return "Failed to load results or invalid result file.", None, None, None, None
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
# Get accuracy metrics if available
|
243 |
accuracy_info = ""
|
244 |
if "vibe_prediction_metrics" in results and results["vibe_prediction_metrics"]:
|
245 |
metrics = results["vibe_prediction_metrics"]
|
@@ -265,7 +263,7 @@ def create_vibecheck_results_ui():
|
|
265 |
|
266 |
# Summarize
|
267 |
summary_text = (
|
268 |
-
"
|
269 |
+ model_info
|
270 |
+ f"**Found {len(results['vibe_df']['vibe'].unique())} vibe(s)**\n"
|
271 |
+ "\n".join(
|
|
|
189 |
# Bottom Row - Vibe Examples
|
190 |
with gr.Row():
|
191 |
with gr.Column():
|
192 |
+
gr.Markdown("## Explore Examples")
|
193 |
load_vibe_dropdown = gr.Dropdown(
|
194 |
+
label="Select a vibe to see examples and their scores",
|
195 |
choices=[],
|
196 |
interactive=True,
|
197 |
multiselect=False,
|
|
|
235 |
|
236 |
if not results or "vibe_df" not in results:
|
237 |
return "Failed to load results or invalid result file.", None, None, None, None
|
238 |
+
|
239 |
+
model_names = results.get("models")
|
240 |
+
|
|
|
|
|
241 |
accuracy_info = ""
|
242 |
if "vibe_prediction_metrics" in results and results["vibe_prediction_metrics"]:
|
243 |
metrics = results["vibe_prediction_metrics"]
|
|
|
263 |
|
264 |
# Summarize
|
265 |
summary_text = (
|
266 |
+
"### Loaded VibeCheck Results\n"
|
267 |
+ model_info
|
268 |
+ f"**Found {len(results['vibe_df']['vibe'].unique())} vibe(s)**\n"
|
269 |
+ "\n".join(
|