Spaces:
Sleeping
Sleeping
mikepastor11
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -117,10 +117,30 @@ def process_user_question(user_question):
|
|
117 |
def main():
|
118 |
|
119 |
# load_dotenv()
|
|
|
|
|
120 |
# st.set_page_config(page_title="Pennwick PDF Analyzer", page_icon=":books:")
|
121 |
# im = Image.open("robot_icon.ico")
|
122 |
# st.set_page_config(page_title="Pennwick PDF Analyzer", page_icon=im )
|
123 |
-
st.set_page_config(page_title="Pennwick PDF Analyzer")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
|
125 |
st.write(css, unsafe_allow_html=True)
|
126 |
|
|
|
117 |
def main():
|
118 |
|
119 |
# load_dotenv()
|
120 |
+
|
121 |
+
##################################################################################
|
122 |
# st.set_page_config(page_title="Pennwick PDF Analyzer", page_icon=":books:")
|
123 |
# im = Image.open("robot_icon.ico")
|
124 |
# st.set_page_config(page_title="Pennwick PDF Analyzer", page_icon=im )
|
125 |
+
# st.set_page_config(page_title="Pennwick PDF Analyzer")
|
126 |
+
|
127 |
+
import base64
|
128 |
+
from PIL import Image
|
129 |
+
|
130 |
+
# Open your image
|
131 |
+
image = Image.open("robot_icon.ico")
|
132 |
+
|
133 |
+
# Convert image to base64 string
|
134 |
+
with open("robot_icon.ico", "rb") as f:
|
135 |
+
encoded_string = base64.b64encode(f.read()).decode()
|
136 |
+
|
137 |
+
# Set page config with base64 string
|
138 |
+
st.set_page_config(page_title="Pennwick PDF Analyzer", page_icon=f"data:image/png;base64,{encoded_string}")
|
139 |
+
|
140 |
+
|
141 |
+
|
142 |
+
|
143 |
+
###################
|
144 |
|
145 |
st.write(css, unsafe_allow_html=True)
|
146 |
|