Spaces:
Sleeping
Sleeping
Commit
ยท
ac02d5d
1
Parent(s):
3fb3c57
app
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from rag import answer_question
|
|
3 |
|
4 |
# Set page config
|
5 |
st.set_page_config(
|
6 |
-
page_title="Cory Booker's
|
7 |
)
|
8 |
|
9 |
# Custom CSS
|
@@ -72,7 +72,7 @@ st.markdown(
|
|
72 |
)
|
73 |
|
74 |
# Header with American flag emoji
|
75 |
-
st.title("๐บ๐ธ Cory Booker's Historic
|
76 |
|
77 |
|
78 |
st.markdown(
|
@@ -89,8 +89,8 @@ st.markdown(
|
|
89 |
st.markdown(
|
90 |
"""
|
91 |
<div style='background-color: #ffffff; padding: 20px; border-radius: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); margin-top: 20px;'>
|
92 |
-
<h2 class="section-title">Explore the
|
93 |
-
<p class="section-text">Ask questions about Senator Booker's historic <span class="highlight-text">25-hour
|
94 |
</div>
|
95 |
""",
|
96 |
unsafe_allow_html=True,
|
@@ -99,11 +99,11 @@ st.markdown(
|
|
99 |
text = st.text_area(
|
100 |
"Your Question",
|
101 |
height=150,
|
102 |
-
placeholder="What would you like to know about Senator Booker's
|
103 |
)
|
104 |
|
105 |
if st.button("Search", key="search_button"):
|
106 |
-
with st.spinner("Searching through the historic
|
107 |
response = answer_question(text)
|
108 |
st.markdown(
|
109 |
"""
|
|
|
3 |
|
4 |
# Set page config
|
5 |
st.set_page_config(
|
6 |
+
page_title="Cory Booker's Marathon Speech", page_icon="๐บ๐ธ", layout="wide"
|
7 |
)
|
8 |
|
9 |
# Custom CSS
|
|
|
72 |
)
|
73 |
|
74 |
# Header with American flag emoji
|
75 |
+
st.title("๐บ๐ธ Cory Booker's Historic Speech")
|
76 |
|
77 |
|
78 |
st.markdown(
|
|
|
89 |
st.markdown(
|
90 |
"""
|
91 |
<div style='background-color: #ffffff; padding: 20px; border-radius: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); margin-top: 20px;'>
|
92 |
+
<h2 class="section-title">Explore the Speech</h2>
|
93 |
+
<p class="section-text">Ask questions about Senator Booker's historic <span class="highlight-text">25-hour speech</span> below:</p>
|
94 |
</div>
|
95 |
""",
|
96 |
unsafe_allow_html=True,
|
|
|
99 |
text = st.text_area(
|
100 |
"Your Question",
|
101 |
height=150,
|
102 |
+
placeholder="What would you like to know about Senator Booker's speech?",
|
103 |
)
|
104 |
|
105 |
if st.button("Search", key="search_button"):
|
106 |
+
with st.spinner("Searching through the historic transcript..."):
|
107 |
response = answer_question(text)
|
108 |
st.markdown(
|
109 |
"""
|