Share the full text of the error message (not a screenshot).
I want to add text message(Get started) to tool tip of sidebar
Share the Streamlit and Python versions.
Streamlit - version 1.32.2
python version - 3.9.16
I have two requirements
One i want to add text to tooltip of sidebar expansion button.
Second i want the text of sidebar should be adjustable to width of sidebar, currently i have to scroll.
st.sidebar.title("Example Prompts:")
# Use HTML and CSS to format each prompt
for i, prompt in enumerate(example_prompts):
st.sidebar.markdown(f"<pre><code>{prompt}</code></pre>", unsafe_allow_html=True)```
Can you share more details on what is happening in the app? Like how is the content on the sidebar generated? Please, also include a link to your repo or more code snippets.
@tonykip Thank you so much for replying so quick, i needed to release this app soon
This is the whole code for sidebar.
example_prompts = [
"Add a discount column which is 10 percent of MRP for size XXL , 20 percent of MRP for L and 50 percent of MRP for other sizes. Also add selling price column",
"Using database convert this file into XYZ format",
"Join both tables on style_code, and list all the sizes with respect to each category. For each category there should be a single row"
]
st.sidebar.title("Example Prompts:")
# Use HTML and CSS to format each prompt
for i, prompt in enumerate(example_prompts):
st.sidebar.markdown(f"<pre><code>{prompt}</code></pre>", unsafe_allow_html=True)
This app is about where user can upload a file and give a prompt to transform the file.
Content of sidebar is hardcoded list of example prompts that user can give. That will be helpful for user to Get started with this app.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.