Flame-Forged commited on
Commit
f2e4cdf
·
verified ·
1 Parent(s): 331fe0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -9
app.py CHANGED
@@ -82,9 +82,14 @@ th {
82
  td {
83
  background-color: #0d0d1a !important;
84
  color: #e0e0f0 !important;
85
- padding: 8px 14px !important;
86
  border-bottom: 1px solid #1e1e3a !important;
87
  font-size: 0.9em !important;
 
 
 
 
 
88
  }
89
  tr:hover td { background-color: #1a1a2e !important; }
90
  .result-count p {
@@ -145,10 +150,10 @@ def build_stats():
145
  lines.append(f"`{bar}` **{val}** — {count} ({pct}%)")
146
  return "\n\n".join(lines)
147
 
148
- platforms = section("By Platform", df["platform"].value_counts())
149
- categories = section("By Behavior Category", df["behavior_category"].value_counts())
150
- confidence = section("By Interpretive Confidence", df["interpretive_confidence"].value_counts())
151
- repro = section("By Reproducibility Status", df["reproducibility_status"].value_counts())
152
 
153
  evidence_pct = round(df["raw_prompt_available"].astype(str).str.lower().eq("yes").mean() * 100)
154
  response_pct = round(df["raw_response_available"].astype(str).str.lower().eq("yes").mean() * 100)
@@ -177,8 +182,6 @@ def build_stats():
177
  """
178
  return summary
179
 
180
- initial_df = load_data()
181
-
182
  def submit_observation(
183
  f_date, platform, model_version, memory_enabled,
184
  window_type, prompt_class, behavior_category,
@@ -213,6 +216,8 @@ def submit_observation(
213
  else:
214
  return "⚠️ Saved locally but HF_TOKEN not set — won't persist after restart."
215
 
 
 
216
  with gr.Blocks(title="Coherence Gap Explorer", css=custom_css) as demo:
217
  gr.Markdown("# Coherence Gap Explorer")
218
  gr.Markdown(
@@ -243,8 +248,11 @@ with gr.Blocks(title="Coherence Gap Explorer", css=custom_css) as demo:
243
  elem_classes=["result-count"]
244
  )
245
  table = gr.Dataframe(
246
- value=initial_df, label="Observations",
247
- interactive=False, wrap=True
 
 
 
248
  )
249
  inputs = [platform_dd, category_dd, confidence_dd, search_box]
250
  for component in inputs:
 
82
  td {
83
  background-color: #0d0d1a !important;
84
  color: #e0e0f0 !important;
85
+ padding: 6px 14px !important;
86
  border-bottom: 1px solid #1e1e3a !important;
87
  font-size: 0.9em !important;
88
+ max-height: 42px !important;
89
+ overflow: hidden !important;
90
+ text-overflow: ellipsis !important;
91
+ white-space: nowrap !important;
92
+ vertical-align: middle !important;
93
  }
94
  tr:hover td { background-color: #1a1a2e !important; }
95
  .result-count p {
 
150
  lines.append(f"`{bar}` **{val}** — {count} ({pct}%)")
151
  return "\n\n".join(lines)
152
 
153
+ platforms = section("By Platform", df["platform"].value_counts())
154
+ categories = section("By Behavior Category", df["behavior_category"].value_counts())
155
+ confidence = section("By Interpretive Confidence",df["interpretive_confidence"].value_counts())
156
+ repro = section("By Reproducibility Status", df["reproducibility_status"].value_counts())
157
 
158
  evidence_pct = round(df["raw_prompt_available"].astype(str).str.lower().eq("yes").mean() * 100)
159
  response_pct = round(df["raw_response_available"].astype(str).str.lower().eq("yes").mean() * 100)
 
182
  """
183
  return summary
184
 
 
 
185
  def submit_observation(
186
  f_date, platform, model_version, memory_enabled,
187
  window_type, prompt_class, behavior_category,
 
216
  else:
217
  return "⚠️ Saved locally but HF_TOKEN not set — won't persist after restart."
218
 
219
+ initial_df = load_data()
220
+
221
  with gr.Blocks(title="Coherence Gap Explorer", css=custom_css) as demo:
222
  gr.Markdown("# Coherence Gap Explorer")
223
  gr.Markdown(
 
248
  elem_classes=["result-count"]
249
  )
250
  table = gr.Dataframe(
251
+ value=initial_df,
252
+ label="Observations",
253
+ interactive=False,
254
+ wrap=False,
255
+ height=500
256
  )
257
  inputs = [platform_dd, category_dd, confidence_dd, search_box]
258
  for component in inputs: