Spaces:
Running
on
T4
Running
on
T4
app look
Browse files- app.py +0 -13
- pages/Multimodal_Conversational_Search.py +3 -3
app.py
CHANGED
@@ -28,9 +28,6 @@ st.markdown("""
|
|
28 |
}
|
29 |
font-family: 'Amazon Ember', sans-serif;
|
30 |
}
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
.block-container {
|
35 |
padding-top: 2rem;
|
36 |
}
|
@@ -48,8 +45,6 @@ st.markdown("""
|
|
48 |
font-family: 'Amazon Ember Display 500', sans-serif;
|
49 |
margin-bottom: 10px;
|
50 |
}
|
51 |
-
|
52 |
-
|
53 |
.card {
|
54 |
background: rgba(255, 255, 255, 0.05); /* subtle white tint */
|
55 |
backdrop-filter: blur(8px); /* frosted glass effect */
|
@@ -121,11 +116,6 @@ st.markdown("""
|
|
121 |
|
122 |
</style>
|
123 |
""", unsafe_allow_html=True)
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
# Header with logo and title
|
130 |
col_logo, col_title = st.columns([31, 66])
|
131 |
with col_logo:
|
@@ -148,9 +138,6 @@ with col1:
|
|
148 |
</a>
|
149 |
""", unsafe_allow_html=True)
|
150 |
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
with col2:
|
155 |
st.markdown("""
|
156 |
<a href="/Multimodal_Conversational_Search" target="_self" style="text-decoration: none;">
|
|
|
28 |
}
|
29 |
font-family: 'Amazon Ember', sans-serif;
|
30 |
}
|
|
|
|
|
|
|
31 |
.block-container {
|
32 |
padding-top: 2rem;
|
33 |
}
|
|
|
45 |
font-family: 'Amazon Ember Display 500', sans-serif;
|
46 |
margin-bottom: 10px;
|
47 |
}
|
|
|
|
|
48 |
.card {
|
49 |
background: rgba(255, 255, 255, 0.05); /* subtle white tint */
|
50 |
backdrop-filter: blur(8px); /* frosted glass effect */
|
|
|
116 |
|
117 |
</style>
|
118 |
""", unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
119 |
# Header with logo and title
|
120 |
col_logo, col_title = st.columns([31, 66])
|
121 |
with col_logo:
|
|
|
138 |
</a>
|
139 |
""", unsafe_allow_html=True)
|
140 |
|
|
|
|
|
|
|
141 |
with col2:
|
142 |
st.markdown("""
|
143 |
<a href="/Multimodal_Conversational_Search" target="_self" style="text-decoration: none;">
|
pages/Multimodal_Conversational_Search.py
CHANGED
@@ -76,7 +76,7 @@ if "answers_" not in st.session_state:
|
|
76 |
st.session_state.answers_ = []
|
77 |
|
78 |
if "input_index" not in st.session_state:
|
79 |
-
st.session_state.input_index = "
|
80 |
|
81 |
if "input_is_rerank" not in st.session_state:
|
82 |
st.session_state.input_is_rerank = True
|
@@ -91,7 +91,7 @@ if "input_table_with_sql" not in st.session_state:
|
|
91 |
st.session_state.input_table_with_sql = False
|
92 |
|
93 |
if "input_query" not in st.session_state:
|
94 |
-
st.session_state.input_query="
|
95 |
|
96 |
if "input_rag_searchType" not in st.session_state:
|
97 |
st.session_state.input_rag_searchType = ["Vector Search"]
|
@@ -420,7 +420,7 @@ with st.sidebar:
|
|
420 |
st.subheader(":blue[Sample Data]")
|
421 |
coln_1,coln_2 = st.columns([70,30])
|
422 |
with coln_1:
|
423 |
-
index_select = st.radio("Choose one index",["
|
424 |
with coln_2:
|
425 |
st.markdown("<p style='font-size:15px'>Preview file</p>",unsafe_allow_html=True)
|
426 |
st.write("[:eyes:](https://github.com/aws-samples/AI-search-with-amazon-opensearch-service/blob/b559f82c07dfcca973f457c0a15d6444752553ab/rag/sample_pdfs/HPI-Jan-2024-Hometrack.pdf)")
|
|
|
76 |
st.session_state.answers_ = []
|
77 |
|
78 |
if "input_index" not in st.session_state:
|
79 |
+
st.session_state.input_index = "globalwarming"#"hpijan2024hometrack"#"#"hpijan2024hometrack_no_img_no_table"
|
80 |
|
81 |
if "input_is_rerank" not in st.session_state:
|
82 |
st.session_state.input_is_rerank = True
|
|
|
91 |
st.session_state.input_table_with_sql = False
|
92 |
|
93 |
if "input_query" not in st.session_state:
|
94 |
+
st.session_state.input_query="What is the projected energy percentage from renewable sources in future?"#"which city has the highest average housing price in UK ?"#"Which city in United Kingdom has the highest average housing price ?"#"How many aged above 85 years died due to covid ?"# What is the projected energy from renewable sources ?"
|
95 |
|
96 |
if "input_rag_searchType" not in st.session_state:
|
97 |
st.session_state.input_rag_searchType = ["Vector Search"]
|
|
|
420 |
st.subheader(":blue[Sample Data]")
|
421 |
coln_1,coln_2 = st.columns([70,30])
|
422 |
with coln_1:
|
423 |
+
index_select = st.radio("Choose one index",["Global Warming stats","UK Housing","Covid19 impacts on Ireland"],key="input_rad_index")
|
424 |
with coln_2:
|
425 |
st.markdown("<p style='font-size:15px'>Preview file</p>",unsafe_allow_html=True)
|
426 |
st.write("[:eyes:](https://github.com/aws-samples/AI-search-with-amazon-opensearch-service/blob/b559f82c07dfcca973f457c0a15d6444752553ab/rag/sample_pdfs/HPI-Jan-2024-Hometrack.pdf)")
|