Leon4gr45 commited on
Commit
7682eeb
·
verified ·
1 Parent(s): 22a2220

Update src/ui/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/ui/streamlit_app.py +2 -2
src/ui/streamlit_app.py CHANGED
@@ -31,7 +31,7 @@ def display_hypothesis_table(hypotheses: List[Dict[str, Any]]):
31
  for i, h in enumerate(hypotheses):
32
  data.append({
33
  "Rank": i + 1,
34
- "Hypothesis": h["hypothesis"],
35
  "Score": h.get("score", "N/A"),
36
  "Confidence": h.get("confidence", "N/A"),
37
  "Novelty": h.get("novelty_score", "N/A"),
@@ -246,7 +246,7 @@ def run_app():
246
 
247
  if "feedback" in h:
248
  st.markdown("**Feedback**:")
249
- st.markdown(h["feedback"]["critique"])
250
 
251
  cols = st.columns(4)
252
  cols[0].metric("Score", f"{h.get('score', 'N/A')}")
 
31
  for i, h in enumerate(hypotheses):
32
  data.append({
33
  "Rank": i + 1,
34
+ "Hypothesis": h.get('hypothesis', h.get('statement', '')),
35
  "Score": h.get("score", "N/A"),
36
  "Confidence": h.get("confidence", "N/A"),
37
  "Novelty": h.get("novelty_score", "N/A"),
 
246
 
247
  if "feedback" in h:
248
  st.markdown("**Feedback**:")
249
+ st.markdown(h["feedback"])
250
 
251
  cols = st.columns(4)
252
  cols[0].metric("Score", f"{h.get('score', 'N/A')}")