Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,8 +24,8 @@ if "messages" not in st.session_state: # Stores the messages of the assistant
|
|
| 24 |
if "retry_error" not in st.session_state: # Used for error handling
|
| 25 |
st.session_state.retry_error = 0
|
| 26 |
|
| 27 |
-
st.set_page_config(page_title="
|
| 28 |
-
st.sidebar.title("
|
| 29 |
st.sidebar.divider()
|
| 30 |
st.sidebar.markdown("Versi贸n actual: none")
|
| 31 |
|
|
@@ -34,7 +34,7 @@ st.sidebar.divider()
|
|
| 34 |
|
| 35 |
if "assistant" not in st.session_state:
|
| 36 |
|
| 37 |
-
st.session_state.assistant = openai.beta.assistants.retrieve(assistant_id='
|
| 38 |
|
| 39 |
# Create a new thread for this session
|
| 40 |
st.session_state.thread = client.beta.threads.create(
|
|
@@ -67,7 +67,7 @@ elif hasattr(st.session_state.run, 'status') and st.session_state.run.status ==
|
|
| 67 |
message_text = content_part.text.value
|
| 68 |
st.markdown(message_text)
|
| 69 |
|
| 70 |
-
if prompt := st.chat_input("Escribe tu consulta sobre la
|
| 71 |
with st.chat_message('user'):
|
| 72 |
st.write(prompt)
|
| 73 |
|
|
|
|
| 24 |
if "retry_error" not in st.session_state: # Used for error handling
|
| 25 |
st.session_state.retry_error = 0
|
| 26 |
|
| 27 |
+
st.set_page_config(page_title="Reportes Vidal 140")
|
| 28 |
+
st.sidebar.title("Agente - Vidal 140")
|
| 29 |
st.sidebar.divider()
|
| 30 |
st.sidebar.markdown("Versi贸n actual: none")
|
| 31 |
|
|
|
|
| 34 |
|
| 35 |
if "assistant" not in st.session_state:
|
| 36 |
|
| 37 |
+
st.session_state.assistant = openai.beta.assistants.retrieve(assistant_id='asst_oZMLlwkRJ7xMQiQfv1gaVvbQ')
|
| 38 |
|
| 39 |
# Create a new thread for this session
|
| 40 |
st.session_state.thread = client.beta.threads.create(
|
|
|
|
| 67 |
message_text = content_part.text.value
|
| 68 |
st.markdown(message_text)
|
| 69 |
|
| 70 |
+
if prompt := st.chat_input("Escribe tu consulta sobre la obra Conjunto Habitacional Vidal"):
|
| 71 |
with st.chat_message('user'):
|
| 72 |
st.write(prompt)
|
| 73 |
|