Update app.py
Browse files
app.py
CHANGED
@@ -234,7 +234,7 @@ def page_1():
|
|
234 |
st.error(f"Error processing PDF: {e}")
|
235 |
|
236 |
def page_2():
|
237 |
-
add_background_image("bg2.jpg")
|
238 |
st.markdown("""
|
239 |
<div style="text-align: left;">
|
240 |
<svg width="600" height="100">
|
@@ -251,14 +251,6 @@ def page_2():
|
|
251 |
video_collection = st.session_state.video_collection
|
252 |
st.success("Collections loaded successfully.")
|
253 |
|
254 |
-
st.markdown("""
|
255 |
-
<style>
|
256 |
-
.stChatInputContainer > div {
|
257 |
-
background-color: #000000;
|
258 |
-
}
|
259 |
-
</style>
|
260 |
-
""", unsafe_allow_html=True)
|
261 |
-
|
262 |
query = st.text_input("Enter your query", value="Example Query")
|
263 |
if query:
|
264 |
inputs = format_prompt_inputs(image_collection, text_collection, video_collection, query)
|
@@ -271,7 +263,7 @@ def page_2():
|
|
271 |
response = intiate_convo(query, image_data_1, texts)
|
272 |
# Display the response in Markdown format
|
273 |
st.markdown("### Assistant's Response")
|
274 |
-
st.markdown(
|
275 |
|
276 |
st.markdown("### Images")
|
277 |
display_images(image_collection, query, max_distance=1.55, debug=False)
|
|
|
234 |
st.error(f"Error processing PDF: {e}")
|
235 |
|
236 |
def page_2():
|
237 |
+
# add_background_image("bg2.jpg")
|
238 |
st.markdown("""
|
239 |
<div style="text-align: left;">
|
240 |
<svg width="600" height="100">
|
|
|
251 |
video_collection = st.session_state.video_collection
|
252 |
st.success("Collections loaded successfully.")
|
253 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
254 |
query = st.text_input("Enter your query", value="Example Query")
|
255 |
if query:
|
256 |
inputs = format_prompt_inputs(image_collection, text_collection, video_collection, query)
|
|
|
263 |
response = intiate_convo(query, image_data_1, texts)
|
264 |
# Display the response in Markdown format
|
265 |
st.markdown("### Assistant's Response")
|
266 |
+
st.markdown(response)
|
267 |
|
268 |
st.markdown("### Images")
|
269 |
display_images(image_collection, query, max_distance=1.55, debug=False)
|