Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App theme #77

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

App theme #77

wants to merge 2 commits into from

Conversation

cncoleman
Copy link
Contributor

This includes a config.toml file that lives in .streamlit and colophon.py which is just a container that could all go in a sidebar or be a first page with the button taking you to the verifier.

@cncoleman cncoleman requested a review from jermnelson March 27, 2021 00:00

# Font family for all text in the app, except code blocks. One of "sans serif", "serif", or "monospace".
# Default: "sans serif"
font="calibri"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to remove this line in order to use this config.toml file, otherwise was getting an error message that font was duplicated in line 189.

#st.set_page_config(layout="wide")


#image = Image.open('image/TAXA.png')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should use this image object instead of opening the file in the markdown. I had to include the full path (assumes that the app is run from the root directory) of image = Image.open('src/apps/image/TAXA.png')

with colophon:


st.markdown(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would remove this st.markdown(.. call and replace with st.image(image, caption="Help discover species occurrences hiding in library collections.") that you have commented out in line 16.

st.write('# Help discover species hiding in library collections.')

st.write("The Stanford Libraries AI group is training computers to recognize species occurrence data in digitized student papers. By verifying the genus-species, the time, and location, you can help check the computers' work and improve the model.")
st.button("GET STARTED")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the intention that when the user clicked on this button, we would load of the spoc_verifier app?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants