Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -112,10 +112,13 @@ if query:
|
|
| 112 |
date = row['status_date'].date()
|
| 113 |
bill_number = row['bill_number']
|
| 114 |
full_url = row['url']
|
| 115 |
-
cat_std = row['
|
| 116 |
-
goal = row['
|
| 117 |
-
|
| 118 |
-
|
|
|
|
|
|
|
|
|
|
| 119 |
|
| 120 |
trend = clean_text(row['llama_trend_summary'])
|
| 121 |
insight = clean_text(row['llama_insight'])
|
|
@@ -124,6 +127,9 @@ if query:
|
|
| 124 |
st.markdown(f"**Category:** {cat_std}")
|
| 125 |
st.markdown(f"**Goal:** {goal}")
|
| 126 |
st.markdown(f"**Intent:** {intent} | **Stance:** {stance}")
|
|
|
|
|
|
|
|
|
|
| 127 |
st.markdown(f"Trend Summary:{trend}")
|
| 128 |
st.markdown(f"Actionable Insight:{insight}")
|
| 129 |
st.markdown(f"[View Full Bill Text]({full_url})\n")
|
|
@@ -133,4 +139,6 @@ if query:
|
|
| 133 |
|
| 134 |
st.subheader("RAG-Generated Overall Summary")
|
| 135 |
summary = rag_summarize(collected, summarizer)
|
| 136 |
-
st.success(summary)
|
|
|
|
|
|
|
|
|
| 112 |
date = row['status_date'].date()
|
| 113 |
bill_number = row['bill_number']
|
| 114 |
full_url = row['url']
|
| 115 |
+
cat_std = row['Category & Subcategory']
|
| 116 |
+
goal = row['Legislative Goal']
|
| 117 |
+
impact = row['Policy Impact Areas']
|
| 118 |
+
intent = row['Intent']
|
| 119 |
+
stance = row['Stance']
|
| 120 |
+
description = row['description']
|
| 121 |
+
summary = row['summary']
|
| 122 |
|
| 123 |
trend = clean_text(row['llama_trend_summary'])
|
| 124 |
insight = clean_text(row['llama_insight'])
|
|
|
|
| 127 |
st.markdown(f"**Category:** {cat_std}")
|
| 128 |
st.markdown(f"**Goal:** {goal}")
|
| 129 |
st.markdown(f"**Intent:** {intent} | **Stance:** {stance}")
|
| 130 |
+
st.markdown(f"**Policy Impacy Area:** {impact}")
|
| 131 |
+
st.markdown(f"**Description:** {description}")
|
| 132 |
+
st.markdown(f"**Summary:** {summary}")
|
| 133 |
st.markdown(f"Trend Summary:{trend}")
|
| 134 |
st.markdown(f"Actionable Insight:{insight}")
|
| 135 |
st.markdown(f"[View Full Bill Text]({full_url})\n")
|
|
|
|
| 139 |
|
| 140 |
st.subheader("RAG-Generated Overall Summary")
|
| 141 |
summary = rag_summarize(collected, summarizer)
|
| 142 |
+
st.success(summary)
|
| 143 |
+
|
| 144 |
+
|