Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -11,25 +11,25 @@ from utils.qa import QAEngine
|
|
11 |
# Configure Streamlit page
|
12 |
st.set_page_config(page_title="AI-Powered Document QA", layout="wide")
|
13 |
|
14 |
-
# Background Image
|
15 |
-
def add_bg_from_local(image_file):
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
# Path to background image
|
31 |
-
image_bg = "./image/background.jpeg" # Change this path accordingly
|
32 |
-
add_bg_from_local(image_bg)
|
33 |
|
34 |
# Initialize document processing & AI components
|
35 |
document_processor = DocumentProcessor()
|
|
|
11 |
# Configure Streamlit page
|
12 |
st.set_page_config(page_title="AI-Powered Document QA", layout="wide")
|
13 |
|
14 |
+
# # Background Image
|
15 |
+
# def add_bg_from_local(image_file):
|
16 |
+
# with open(image_file, "rb") as image_file:
|
17 |
+
# encoded_string = base64.b64encode(image_file.read())
|
18 |
+
# st.markdown(
|
19 |
+
# f"""
|
20 |
+
# <style>
|
21 |
+
# .stApp {{
|
22 |
+
# background-image: url(data:image/png;base64,{encoded_string.decode()});
|
23 |
+
# background-size: cover;
|
24 |
+
# }}
|
25 |
+
# </style>
|
26 |
+
# """,
|
27 |
+
# unsafe_allow_html=True,
|
28 |
+
# )
|
29 |
+
|
30 |
+
# # Path to background image
|
31 |
+
# image_bg = "./image/background.jpeg" # Change this path accordingly
|
32 |
+
# add_bg_from_local(image_bg)
|
33 |
|
34 |
# Initialize document processing & AI components
|
35 |
document_processor = DocumentProcessor()
|