Skip to content

Commit

Permalink
Modifying success message of KR until there's a progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjay920 committed Feb 13, 2024
1 parent bc40065 commit c2b4d10
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ def create_assistant(name, description, instructions, model, file_ids, tools):
)
if assistant:
st.session_state.entity_options = get_entity_options()
st.success(
f"Assistant '{name}' with model {model} created successfully!", icon="βœ…"
)
success_message = f"Assistant '{name}' with model {model} created successfully!"
if file_ids:
success_message += " Knowledge Retrieval might take a few minutes to index file data."
st.success(success_message, icon="βœ…")
else:
st.error("Failed to create assistant.")

Expand Down Expand Up @@ -143,7 +144,7 @@ def main():
uploaded_files = st.file_uploader(
"Knowledge",
accept_multiple_files=True,
help="If you upload files under Knowledge, conversations with your Assistant may include file contents. Files can be downloaded when Code Interpreter is enabled",
help="If you upload files for knowledge retrieval, conversations with your Assistant may include file contents. Upon Assistant creation, the file contents will be indexed for retrieval - this may take a moment.",
)

submit_button = st.form_submit_button(label="Create Assistant")
Expand Down

0 comments on commit c2b4d10

Please sign in to comment.