Spaces:
Running
Running
Update streamlit_app.py
Browse files- streamlit_app.py +19 -9
streamlit_app.py
CHANGED
|
@@ -88,31 +88,41 @@ start_background_scheduler()
|
|
| 88 |
st.set_page_config(page_title="PolicyPilot Intel", layout="wide")
|
| 89 |
st.title("AI Policy and News Dashboard - ALPHA Version")
|
| 90 |
|
|
|
|
| 91 |
st.markdown("""
|
| 92 |
-
Welcome to the **AI Policy and News Dashboard**, an automated
|
| 93 |
|
| 94 |
The portal will auto-populate with newly scanned data every 12 hours. You can also manually force a scan using the controls on the left side of the screen.
|
| 95 |
|
| 96 |
This portal's information is divided into two tabs:
|
| 97 |
* **Radar (Upcoming & Today's News):** Forward-looking legislative data and daily news updates.
|
| 98 |
-
* **Archive (Past):** Historical
|
| 99 |
* **How to Filter:** Use the **Controls in the left sidebar** to filter by specific data categories or use the search bar below.
|
| 100 |
|
| 101 |
-
###
|
| 102 |
-
To help you scan the chronological timeline quickly,
|
| 103 |
-
* π£ **Legislation** (
|
| 104 |
* π’ **Federal / Exec Action** (Agencies, White House)
|
| 105 |
-
* π΅ **News / Media** (Press
|
| 106 |
-
* π **Schedule / Hearing** (Committee Meetings
|
| 107 |
|
| 108 |
To generate a high-level summary of the most recent data entries, click the **"Generate Briefing"** button below.
|
| 109 |
""")
|
| 110 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
with st.expander("π οΈ Technical Details & Architecture"):
|
| 112 |
st.markdown("""
|
| 113 |
-
* **AI Engine:** Summaries and keyword extraction are powered by **Meta-Llama-3.1-8B-Instruct**
|
| 114 |
* **Data Sources:** Live API integration with Congress.gov, official federal RSS feeds, and master committee schedules.
|
| 115 |
-
* **
|
| 116 |
* **Data Retention:** News expires from the UI after 30 days, Schedules after 60 days. Legislation is retained for the duration of the current Congress.
|
| 117 |
""")
|
| 118 |
|
|
|
|
| 88 |
st.set_page_config(page_title="PolicyPilot Intel", layout="wide")
|
| 89 |
st.title("AI Policy and News Dashboard - ALPHA Version")
|
| 90 |
|
| 91 |
+
# RESTORED: Original Onboarding Text
|
| 92 |
st.markdown("""
|
| 93 |
+
Welcome to the **AI Policy and News Dashboard**, an automated platform tracking technology policy developments, legislative movement, and media coverage.
|
| 94 |
|
| 95 |
The portal will auto-populate with newly scanned data every 12 hours. You can also manually force a scan using the controls on the left side of the screen.
|
| 96 |
|
| 97 |
This portal's information is divided into two tabs:
|
| 98 |
* **Radar (Upcoming & Today's News):** Forward-looking legislative data and daily news updates.
|
| 99 |
+
* **Archive (Past):** Historical data record on past media coverage and legislation from the current Congress.
|
| 100 |
* **How to Filter:** Use the **Controls in the left sidebar** to filter by specific data categories or use the search bar below.
|
| 101 |
|
| 102 |
+
### Category Legend
|
| 103 |
+
To help you scan the chronological timeline quickly, entries are color-coded:
|
| 104 |
+
* π£ **Legislation** (Bills, Resolutions)
|
| 105 |
* π’ **Federal / Exec Action** (Agencies, White House)
|
| 106 |
+
* π΅ **News / Media** (Press, Think Tanks)
|
| 107 |
+
* π **Schedule / Hearing** (Committee Meetings, Markups)
|
| 108 |
|
| 109 |
To generate a high-level summary of the most recent data entries, click the **"Generate Briefing"** button below.
|
| 110 |
""")
|
| 111 |
|
| 112 |
+
# RESTORED: Warning Notes
|
| 113 |
+
st.markdown("""
|
| 114 |
+
---
|
| 115 |
+
### Notes for Users
|
| 116 |
+
1. **Verify AI Outputs:** This portal leverages summaries generated by language models. All intelligence should be verified using the links to original sources.
|
| 117 |
+
2. **Work in Progress:** This is an alpha version. Improvements in coverage and AI logic will be made regularly.
|
| 118 |
+
""")
|
| 119 |
+
|
| 120 |
+
# RESTORED: Expanded Architecture Notes
|
| 121 |
with st.expander("π οΈ Technical Details & Architecture"):
|
| 122 |
st.markdown("""
|
| 123 |
+
* **AI Engine:** Summaries and keyword extraction are powered by **Meta-Llama-3.1-8B-Instruct**.
|
| 124 |
* **Data Sources:** Live API integration with Congress.gov, official federal RSS feeds, and master committee schedules.
|
| 125 |
+
* **Filtering:** Articles and bills are strictly filtered against a hardcoded tech-policy dictionary before the AI reads them.
|
| 126 |
* **Data Retention:** News expires from the UI after 30 days, Schedules after 60 days. Legislation is retained for the duration of the current Congress.
|
| 127 |
""")
|
| 128 |
|