Update app.py
Browse files
app.py
CHANGED
@@ -14,13 +14,13 @@ st.set_page_config(
|
|
14 |
initial_sidebar_state="expanded",
|
15 |
)
|
16 |
|
17 |
-
# Men煤 de opciones
|
18 |
selected = option_menu(
|
19 |
menu_title="Men煤",
|
20 |
options=["System Prompt", "Chatbot", "Image Captioning"],
|
21 |
icons=["gear", "chat", "camera"],
|
22 |
default_index=0,
|
23 |
-
orientation="
|
24 |
)
|
25 |
|
26 |
# Inicializar el estado de la sesi贸n
|
@@ -113,7 +113,7 @@ if selected == "System Prompt":
|
|
113 |
elif selected == "Chatbot":
|
114 |
model = load_gemini_pro()
|
115 |
|
116 |
-
|
117 |
if "chat_session" not in st.session_state:
|
118 |
loaded_chat = load_chat_history()
|
119 |
if loaded_chat:
|
|
|
14 |
initial_sidebar_state="expanded",
|
15 |
)
|
16 |
|
17 |
+
# Men煤 de opciones en el lateral izquierdo
|
18 |
selected = option_menu(
|
19 |
menu_title="Men煤",
|
20 |
options=["System Prompt", "Chatbot", "Image Captioning"],
|
21 |
icons=["gear", "chat", "camera"],
|
22 |
default_index=0,
|
23 |
+
orientation="vertical" # Cambiado a vertical
|
24 |
)
|
25 |
|
26 |
# Inicializar el estado de la sesi贸n
|
|
|
113 |
elif selected == "Chatbot":
|
114 |
model = load_gemini_pro()
|
115 |
|
116 |
+
# Inicializar o cargar sesi贸n de chat
|
117 |
if "chat_session" not in st.session_state:
|
118 |
loaded_chat = load_chat_history()
|
119 |
if loaded_chat:
|