Questions tagged [streamlit]

Questions about Streamlit and custom machine learning models in Streamlit.

Streamlit lets you create apps for your machine learning projects with deceptively simple Python scripts. It supports hot-reloading, so your app updates live as you edit and save your file. No need to mess with HTTP requests, HTML, JavaScript, etc. All you need is your favorite editor and a browser. Learn more at https://github.com/streamlit/streamlit.

1822 questions
5
votes
1 answer

Streamlit Sessions State for Nested Buttons

I am trying to use session state in streamlit to have a two nested button in which first button click shows recommended movies and second submit button submits a review by user on which a model of sentiment analysis is working. But nested buttons…
5
votes
1 answer

How to Make Folder Picker with Streamlit?

Can I pick folder with Streamlit? file_uploader provides to choose a file, but not a folder. I can not select directory with file_uploader in Streamlit. But I want to save the dataframe to the folder which the user decides. If there is a way to do…
Hilal
  • 95
  • 2
  • 8
5
votes
2 answers

Streamlit: pass the widget input to its own callback

I'd like to capture a text in a streamlit text_area widget (for instance, but any widget that produces input should work the same), and pass the captured text to the callback. How could I do that ? (if it's possible). So far I've tried: import…
FraSchelle
  • 249
  • 4
  • 10
5
votes
1 answer

How to run a containerized streamlit app in a headless/noninteractive mode?

Streamlit server (run e.g. with streamlit run app-name.py) upon first run for each user requires interaction from her - accepting or rejecting this intro message: Welcome to Streamlit! If you are one of our development partners or are…
mirekphd
  • 4,799
  • 3
  • 38
  • 59
5
votes
2 answers

Why does the simplest streamlit example errors out?

I have the simplest streamlit program # import module import streamlit as st # Title st.title("Hello GeeksForGeeks !!!") When I run the code using streamlit run main.py, I get the following errors: SDRRAZAVIPOUR-MAC:[~/PycharmProjects/tool]$…
reza
  • 5,972
  • 15
  • 84
  • 126
5
votes
3 answers

How to center the title and an image in streamlit?

I've already tried the command below for the title and I couldn't. For the image, I just managed to center it by increasing the size so that it fills the entire page. Are there any arguments to st.title() and st.image that allow me to center…
User8563
  • 123
  • 1
  • 2
  • 13
5
votes
2 answers

Display dataframe index name with Streamlit

The following code does not display the name of the index: import pandas as pd import streamlit as st df = pd.DataFrame(['row1', 'row2'], index=pd.Index([1, 2], name='my_index')) st.write(df) Is there a way to have my_index displayed like you…
Hlib Babii
  • 599
  • 1
  • 7
  • 24
5
votes
1 answer

Integrate js scripts on Streamlit

I am trying to integrate my Medium profile on a streamlit app using the below code snippet (generate through https://medium-widget.pixelpoint.io/) import streamlit as st st.markdown('''
Mehul Gupta
  • 1,829
  • 3
  • 17
  • 33
5
votes
1 answer

Nginx, fastapi and streamlit in docker - reverse proxy does not work for streamlit

i want to use docker to containerize nginx, fastapi and 2 streamlit apps. All 3 apps (fastapi, 2streamlit apps) do not interact with each other. Nginx should work as reverse-proxy for the 3 apps. For fastapi it is working. I can send rest-api…
Alsen57
  • 133
  • 1
  • 8
5
votes
1 answer

Streamlit: change the color of multiselect widget

I have been trying to change the color of multiselect widget, specifically the color of choices (the orange color), which seems like this but without any success. I found a discussion in here Streamlit: modify the multiselect tag background color,…
stanly
  • 63
  • 1
  • 6
5
votes
1 answer

Package streamlit app and run executable on windows

this is my first question on Stackoverflow. I hope my question is clear, otherwise let me know and don't hesitate to ask me more details. I'm trying to package a streamlit app for a personal project. I'm developing under linux but I have to deploy…
mattiatantardini
  • 525
  • 1
  • 5
  • 23
5
votes
1 answer

Error while downloading the dataframe from Streamlit web application after data preprocessing

The required task is deploy the data preprocessing web application on Streamlit in which user can upload the raw dataframe and download the processed dataframe. I am trying to download the file on which data preprocessing like missing value…
5
votes
1 answer

can I display custom javascript in streamlit web app

I am working on a parking data app using Streamlit library in python 3.7, I want to display the availability of parking spots using custom JavaScript for visualization. Is it possible to display HTML/javascript elements in streamlit web app
Reda Elmar
  • 63
  • 1
  • 6
5
votes
1 answer

how to display heatmap color correlation plot in streamlit

I'm trying to do visualization with streamlit.one of the contents I have is correlation like this: But I want it to have color like heatmap plot this is my correlation code df_col = pd.concat([df5, df6,df7,df8,df9], axis=1) df5.columns =…
adinda aulia
  • 183
  • 3
  • 12
5
votes
0 answers

Turn streamlit application into a pyinstaller executable

I am building an application in streamlit that, for several reasons, cannot be hosted on a server. The most blocking reason is that it should also work without internet access. Therefore, I would like to turn my application in some sort of…
Larsq
  • 315
  • 2
  • 12