Update app.py
Browse files
app.py
CHANGED
|
@@ -280,14 +280,20 @@ def logout():
|
|
| 280 |
st.session_state.auth_state["user"] = None
|
| 281 |
st.session_state.auth_state["signed_in"] = False
|
| 282 |
|
|
|
|
| 283 |
# Update the main function to include the new option
|
| 284 |
def main():
|
| 285 |
st.sidebar.title("Options")
|
| 286 |
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 291 |
|
| 292 |
option = st.sidebar.selectbox("Select Option", [add_icon, delete_icon, recognize_icon, recognize_optimal_icon], index=0, format_func=lambda x: "")
|
| 293 |
|
|
@@ -304,6 +310,7 @@ if __name__ == "__main__":
|
|
| 304 |
authenticate_user_ui()
|
| 305 |
|
| 306 |
|
|
|
|
| 307 |
# add_icon_path = os.path.join
|
| 308 |
# delete_icon_path = os.path.join(current_directory, "delete.png")
|
| 309 |
# recognize_icon_path = os.path.join(current_directory, "Explore.png")
|
|
|
|
| 280 |
st.session_state.auth_state["user"] = None
|
| 281 |
st.session_state.auth_state["signed_in"] = False
|
| 282 |
|
| 283 |
+
# Update the main function to include the new option
|
| 284 |
# Update the main function to include the new option
|
| 285 |
def main():
|
| 286 |
st.sidebar.title("Options")
|
| 287 |
|
| 288 |
+
add_icon_path = os.path.join(current_directory, "Add.png")
|
| 289 |
+
delete_icon_path = os.path.join(current_directory, "delete.png")
|
| 290 |
+
recognize_icon_path = os.path.join(current_directory, "Explore.png")
|
| 291 |
+
recognize_optimal_icon_path = os.path.join(current_directory, "Explore+.png")
|
| 292 |
+
|
| 293 |
+
add_icon = Image.open(add_icon_path)
|
| 294 |
+
delete_icon = Image.open(delete_icon_path)
|
| 295 |
+
recognize_icon = Image.open(recognize_icon_path)
|
| 296 |
+
recognize_optimal_icon = Image.open(recognize_optimal_icon_path)
|
| 297 |
|
| 298 |
option = st.sidebar.selectbox("Select Option", [add_icon, delete_icon, recognize_icon, recognize_optimal_icon], index=0, format_func=lambda x: "")
|
| 299 |
|
|
|
|
| 310 |
authenticate_user_ui()
|
| 311 |
|
| 312 |
|
| 313 |
+
|
| 314 |
# add_icon_path = os.path.join
|
| 315 |
# delete_icon_path = os.path.join(current_directory, "delete.png")
|
| 316 |
# recognize_icon_path = os.path.join(current_directory, "Explore.png")
|