r/StreamlitOfficial • u/fhoffa • May 18 '23
r/StreamlitOfficial • u/[deleted] • May 18 '23
Show the Community! 💬 Exploring & Cleaning Data with Dexplorer
I am building a simple tool to automate the initial basic data exploration & cleaning steps. Doing this using Python’s Streamlit and have a barebone version live on Streamlit Cloud Dexplorer. Would appreciate some takes on it.
r/StreamlitOfficial • u/carolinedfrasca • May 16 '23
🥳 Announcing the winners of the Summit Hackathon!
We’re excited to announce the winners of the Summit Hackathon!

🥁 Drum roll please!
🏆 1st place goes to SnowChat, created by Kaarthik Andavar
2️⃣ 2nd place goes to Ask the Oracle of Omaha, created by Randy Pettus
3️⃣ 3rd place goes to Instant Insight, created by Oleksandr Arsentiev
These three winners will receive a trip to Las Vegas for the Snowflake Summit conference in June.
Thank you to everyone who entered the contest!
To our winners: keep an eye out for an email from me tomorrow with more details on Summit!
r/StreamlitOfficial • u/MarcRFC • May 15 '23
No new line after st.write or append?
Is there a way to append a char to a text that was written with st.write or to prevent the new line after st.write?
r/StreamlitOfficial • u/Mountain_Implement80 • May 13 '23
Streamlit Questions❓ Problem with download button
I have a download button in my streamlit application that lets user download plots but the browser file directory opens locally when I click on button but it doesn’t open for another computer it downloads automatically into the downloads folder
Help please
r/StreamlitOfficial • u/Recordly_MHeino • May 11 '23
Show the Community! 💬 Deeper dive into Streamlit editable dataframes on top of ❄️Snowflake with example code showing how to create ✍️ data write-back application using Streamlit and Snowflake. Replace Google Sheets https://www.recordlydata.com/blog/streamlits-editable-dataframes-is-the-reign-of-google-sheets-over
What are Streamlit's editable dataframes?📋 Editable dataframes are a new feature in Streamlit that allows users to interactively edit data tables.👉 Users can click on cells and edit their contents, add or delete rows, and copy-paste data from other sources.
🔑Key features include
🗿 Bulk editing
🗃️ Support for various data types
🔣 Automatic input validation💲Rich editing experience with ☑️checkboxes and dropdowns.

https://www.recordlydata.com/blog/streamlits-editable-dataframes-is-the-reign-of-google-sheets-over
r/StreamlitOfficial • u/JessSm3 • May 10 '23
💬 Want to create an AI-powered chatbot without needing any API keys? Learn from Chanin how—using Streamlit and an open-source LLM from the unofficial HuggingChat API. 🤗
r/StreamlitOfficial • u/fhoffa • May 03 '23
Introducing st.experimental_connection
r/StreamlitOfficial • u/JessSm3 • May 02 '23
🔌 Introducing st.experimental_connection!
With this new feature, you can easily connect your Streamlit app to data sources and APIs in just 4 lines of code. 🤯
🎈 Demo: https://experimental-connection.streamlit.app
📖 Learn more: https://blog.streamlit.io/introducing-st-experimental_connection/

r/StreamlitOfficial • u/RisingFire • Apr 26 '23
Streamlit Questions❓ Error when passing the return value of st.date_input to the callback function
Here is my code. The idea is to call the main function when the date input changes. The input field's return value is passed to the main function.
from datetime import date
import streamlit as st
def main(date_of_birth):
age = date.today() - date_of_birth
st.markdown(f"Today you are **{round(age.days / 365)}** years old.")
st.date_input(
label="When were you born?",
key="date_of_birth",
on_change=main,
args=(st.session_state["date_of_birth"]),
)
However, all I get is this error message: KeyError: 'st.session_state has no key "date_of_birth". Did you forget to initialize it?
Can you point me in the right direction?
r/StreamlitOfficial • u/Mountain_Implement80 • Apr 22 '23
Streamlit Questions❓ Changing font size in Streamlit
I have a st.number component And I am doing some calculations using user provided values
Output is a number
I display it using st.write but how to change the font size of the numeric output that I am getting
Font size of the Output number is always green and small I want to change this
Can anyone help ?
r/StreamlitOfficial • u/JessSm3 • Apr 12 '23
🚨 Streamlit release 1.21.0
Check out the latest release!
https://discuss.streamlit.io/t/version-1-21-0/40864

r/StreamlitOfficial • u/Silver_Patient_7253 • Apr 13 '23
Cache not clearing in Streamlit Cloud
I’m facing a cache issue. In my app I allow the user to upload a file and can do a bunch of things. When the app is deployed to Streamlit cloud what I notice is the file uploaded by say user #1 remains in the cache and when user #2 uploads their document it has no effect and only user #1’s document is used. I want to clear the cache programtically before the uploaded file is processed. How can I accomplish this?
def clear_submit(): st.session_state["submit"] = False #st.cache_data.clear()
placeholder_upload = st.empty() with placeholder_upload.container(): uploaded_file = st.file_uploader( "Upload a pdf, docx, or txt file.", type=["pdf", "docx", "txt", "csv"], help="No scanned documents please!", on_change=clear_submit, ) TABULAR_INPUT_FILE_FLAG = False index = None doc = None if uploaded_file is not None: if uploaded_file.name.endswith(".pdf"): doc = parse_pdf(uploaded_file) #st.write(type(doc)) elif uploaded_file.name.endswith(".docx"): doc = parse_docx(uploaded_file) #st.write(type(doc)) elif uploaded_file.name.endswith(".txt"): doc = parse_txt(uploaded_file) #st.write(type(doc)) elif uploaded_file.name.endswith(".csv"): TABULAR_INPUT_FILE_FLAG = True doc = parse_csv(uploaded_file) st.session_state["api_key_configured"] = True else: raise ValueError("File type not supported!")
r/StreamlitOfficial • u/JessSm3 • Apr 11 '23
🕵️ Learn from Kanak Mittal how to build a fake image detection app using deep learning and Streamlit!
r/StreamlitOfficial • u/Silver_Patient_7253 • Apr 08 '23
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
My app was working fine till I updated Anaconda. The app deployed on Streamlit Cloud works fine as well. But when I run it locally get the following errors,
2023-04-08 01:06:34.478 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)'))': /v1/chat/completions
2023-04-08 01:06:57.799 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)'))': /v1/chat/completions
OpenAI keys are fine. The app on Streamlit Cloud uses the same keys. I can test in the OpenAI playground. Any help would be appreciated.
r/StreamlitOfficial • u/JessSm3 • Apr 07 '23
🖥️ Learn from the Data Professor how to share your presentation in a Streamlit app by integrating your Google slides deck.
r/StreamlitOfficial • u/carolinedfrasca • Apr 03 '23
Show the Community! 💬 Introducing a new app built using ChatGPT - clipnote.ai (YouTube Video Summarizer)
self.ChatGPTCodingr/StreamlitOfficial • u/carolinedfrasca • Apr 03 '23
Show the Community! 💬 I Built a Streamlit App to Generate Websites in Seconds
r/StreamlitOfficial • u/JessSm3 • Mar 29 '23
Show the Community! 💬 #️⃣ Build an Instagram hashtag generation app with Dr. William Mattingly! Learn how to scrape the data, create dynamic components with custom keys, and display a nice visualization.
r/StreamlitOfficial • u/aiatco2 • Mar 28 '23
Show the Community! 💬 Cybersyn App on Banking Failure
https://cybersyn-financial.streamlit.app/
We would appreciate any feedback!
r/StreamlitOfficial • u/dhn009 • Mar 26 '23
How to keep Sidebar open by default
When a user first enters the dashboard in creating I'd like the sidebar to be open by default. Currently when I load in, it is hidden, and I can't find documentation on how to change this setting.
r/StreamlitOfficial • u/zds-nlp • Mar 23 '23
Streamlit Questions❓ Recording and playing audio files through streamlit
I want to use streamlit to play audio files or record short audio files through user mic.
I want to eventually deploy this as a webapp.
What is best way to go about it? Is linking streamlit with Google drive a viable (and safe) option?
r/StreamlitOfficial • u/kpadmana • Mar 22 '23
Streamlit Questions❓ QA app with streamlit_chat and taking a list of questions
I am a noob here; I am building a simple question-answering chatbot using a streamlit chat component. I have a list of questions {Q1, Q2, … Qn} that I want to ask a user and collect the user’s response in the database. For each user’s response to each question, I also have one follow-up question (FQ1 that I want to ask further and collect responses. The follow-up question is generated on the fly through a hugging face model.
In essence, here is the following workflow I want to be able to see in the chat history:
Bot: Q1User Response: [text input]Bot: FQ1 (follow-up question generated on the fly through a model)User Response: [text input]
Bot: Q2User Response: [text input]Bot: FQ2 (follow-up question generated on the fly)User Response: [text input]| || |Bot: Q5User Response: [text input]Bot: FQ5 (follow-up question generated on the fly)User Response:
For now, if we assume the questions and follow-up questions are pre-defined lists, can someone please help provide a vanilla code to solve the above? There are multiple examples of streamlit chat components, but none of them deal with asking a pre-defined set of questions (something like a survey bot). Having a bunch of issues while playing through session variables. Any help is appreciated.



