Skip to content

GmailBhu/streamlit-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Welcome to Streamlit!

Edit /streamlit_app.py to customize this app to your heart's desire ❤️

If you have any questions, checkout our documentation and community forums. import streamlit as st from annotated_text import annotated_text, annotation

"""

Annotated text example

Below is some annotated text: """

with st.echo(): annotated_text( "This ", ("is", "verb"), " some ", ("annotated", "adj"), ("text", "noun"), " for those of ", ("you", "pronoun"), " who ", ("like", "verb"), " this sort of ", ("thing", "noun"), "." )

Weird, right now there's negative margin at the bottom of all st.markdown.

Adding this to make up for it, but we should fix it in Streamlit itself.

""

""" Bam! """

""" And you can also customize colors: """

with st.echo(): annotated_text( "This ", ("is", "verb", "#8ef"), " some ", ("annotated", "adj", "#faa"), ("text", "noun", "#afa"), " for those of ", ("you", "pronoun", "#fea"), " who ", ("like", "verb", "#8ef"), " this sort of ", ("thing", "noun", "#afa"), "." )

About

Example Streamlit app that you can fork to test out share.streamlit.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%