Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
v2.3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
ashpreetbedi committed Feb 4, 2024
1 parent 1bcdb01 commit fe1eafd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
11 changes: 6 additions & 5 deletions app/pages/2_Image_Assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,12 @@ def main() -> None:
if last_message.get("role") == "user":
question = last_message["content"]
with st.chat_message("assistant"):
response = ""
resp_container = st.empty()
for delta in image_assistant.run(question):
response += delta # type: ignore
resp_container.markdown(response)
with st.spinner("Working..."):
response = ""
resp_container = st.empty()
for delta in image_assistant.run(question):
response += delta # type: ignore
resp_container.markdown(response)
st.session_state["messages"].append({"role": "assistant", "content": response})

if image_assistant.storage:
Expand Down
11 changes: 6 additions & 5 deletions app/pages/3_Website_Assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,12 @@ def main() -> None:
if last_message.get("role", "") == "user":
question = last_message["content"]
with st.chat_message("assistant"):
response = ""
resp_container = st.empty()
for delta in website_assistant.run(question):
response += delta # type: ignore
resp_container.markdown(response)
with st.spinner("Working..."):
response = ""
resp_container = st.empty()
for delta in website_assistant.run(question):
response += delta # type: ignore
resp_container.markdown(response)

st.session_state["messages"].append({"role": "assistant", "content": response})

Expand Down
2 changes: 1 addition & 1 deletion workspace/prd_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@
prd_fastapi = FastApi(
name=f"{ws_settings.prd_key}-api",
enabled=ws_settings.prd_api_enabled,
group="app",
group="api",
image=prd_image,
command="uvicorn api.main:app",
port_number=8000,
Expand Down

0 comments on commit fe1eafd

Please sign in to comment.