Skip to content

Commit

Permalink
Improve info messages
Browse files Browse the repository at this point in the history
  • Loading branch information
aecio committed Oct 26, 2023
1 parent cd3a32c commit 4590d8d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
9 changes: 6 additions & 3 deletions streamlit/pages/1_🔎_Search_Pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@

st.divider()

st.header("1. Upload a CSV or ZIP File", anchor=False)
st.header("1. Upload the Training Data", anchor=False)
st.info(
"""
If you upload a .zip file, it must contain a CSV file named "data.csv".
It may also contain image files that are referenced in a column named "image_path" in the data.csv file.
You may upload either a CSV or a ZIP file. If you upload a ZIP file, it
must contain a CSV file named "data.csv" that contains the training data.
If the 'data.csv' includes a column named "image_path" containing file
paths to images that are also included in the CSV file, the system will
automatically load process thse images as well.
""",
icon="ℹ️",
)
Expand Down
10 changes: 6 additions & 4 deletions streamlit/pages/2_🚀_Deploy_Pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,17 @@ def convert_df(input_df, image_column):

st.divider()

st.header("1. Upload a CSV or ZIP File", anchor=False)
st.header("1. Upload data for predictions", anchor=False)
st.info(
"""
If you upload a .zip file, it must contain a CSV file named "data.csv".
It may also contain image files that are referenced in a column named "image_path" in the data.csv file.
You can upload a CSV or ZIP file for which you want to make predictions. If you select
a ZIP file, make sure it has a CSV file named "data.csv" that the model will use to
make predictions. The CSV file should have the same columns as the training data
used to create the model, except for the prediction target column.
""",
icon="ℹ️",
)
uploaded_dataset = st.file_uploader("Upload Your CSV File", type=["csv", "zip"])
uploaded_dataset = st.file_uploader("Upload Your CSV/ZIP File", type=["csv", "zip"])
if uploaded_dataset:
print("Uploaded file:", uploaded_dataset)
if st.session_state.upload_file_id != uploaded_dataset.file_id:
Expand Down

0 comments on commit 4590d8d

Please sign in to comment.