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
0
votes
1 answer

How to plot comparison in Streamlit dynamically with multiselect?

I created a comparison app with streamlit and I want to compare it dynamically. Here's my code that i write import streamlit as st import matplotlib.pyplot as plt import pandas as…
0
votes
1 answer

how to use a python variable inside streamlit markdown

import streamlit as st statename = "some state name" d = 2000 st.markdown(""" #### "{temp1} has made {temp} calls".format(temp1 = statename, temp = str(d)) """, unsafe_allow_html=True) Here the…
darkexodus
  • 147
  • 1
  • 14
0
votes
1 answer

How to download matplotlib graphs generated in a Streamlit app

Is there any way to allow users to download a graph made using matplotlib/seaborn in a Streamlit app? I managed to get a download button working to download a dataframe as a csv, but I can't figure out how to allow users to download a graph. I have…
Matt
  • 53
  • 1
  • 7
0
votes
1 answer

Is there a solution to use seaborn with streamlit if my app is blanck using seaborn?

MacOS + streamlit + Python 3.9. I have an issue using seaborn. import seaborn as sns nb_currentprovider = plt.figure(figsize=(10,6)) sns.countplot(x="current_provider",data=df_ventes) plt.title("Répartition des ventes selon l'opérateur actuel du…
Elise
  • 29
  • 1
  • 5
0
votes
0 answers

Streamlit does not open the web browser

I am trying to run an app using Streamlit. The browser (localhost) does not open for me. Instead I get this warning message: Warning: to view this Streamlit app on a browser, run it with the following command: streamlit run…
0
votes
1 answer

Streamlit server configuration on remote HTTPS using Azure Compute Instance

I am trying to host a Streamlit app on Azure Compute Instance resource. It appears that accessing the instance is possible through https://{instanceName}-{internalPort}.northeurope.instances.azureml.ms (with an Azure-provided security layer in…
casparjespersen
  • 3,460
  • 5
  • 38
  • 63
0
votes
1 answer

ModuleNotFoundError: No module named 'streamlit.report_thread'

Trying to deploy real time emotion detection model and getting this error from streamlit. I tried installing all the libraries but it always throwing this error.
0
votes
2 answers

How to decrease plot size in streamlit?

I set my web app in streamlit to Wide Mode. As a result, the plotted graph fills the entire page, making it very large. Is there any way to plot it as if it were out of Wide Mode, or any way to decrease it? I would like it to be in a size that looks…
User8563
  • 123
  • 1
  • 2
  • 13
0
votes
0 answers

Fixing the value of a variable which comes from Random module for the whole code

I want to fix the value of text for the whole code and refresh it when the website is reloaded. The value of text is keep on changing. import streamlit as st import random word_list = ['tuple' , 'global' , 'list' , 'dict' , 'string' , 'elif' ,…
0
votes
1 answer

Modify Checkboxes based on changes in Streamlit

I wanted to create a checkbox which checks all other checkboxes if checked and if the checkbox is unchecked that all other checkboxes also get unchecked. For example: Clicking on “all” should be also checking “option1, option2, etc.”. Same if I…
Oweys
  • 47
  • 6
0
votes
0 answers

How to deploy an automl model from gcp as a web app using streamlit on GCP

I plan to build an application which asks user input in the form of news and predicts it as fake or true. i have trained the model using automl google cloud platform (GCP) on vertex AI platform. I have created the endpoint. How to proceed further?…
0
votes
1 answer

Connecting a solidity smart contract to streamlit

first post here. Can anyone help with fixing this argument issue. I must say that this is for a class project and this will never be put to use for monetary gain. I am making a makeshift NFT marketplace through Streamlit. My contract is as…
0
votes
1 answer

Updating a plotnine plot on streamlit

Goal I want to continuously update a plotnine plot on a streamlit app. Code I receive data from socket and then plot it as follows: import socket import struct import pandas as pd import streamlit as st import time from plotnine import * UDP_IP =…
umair durrani
  • 5,597
  • 8
  • 45
  • 85
0
votes
1 answer

Streamlit: Use html button as a native one

I have the following html code of a table, embedded within a Streamlit app: homepage_table = """

\n

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n

Alessandro Ceccarelli
  • 1,775
  • 5
  • 21
  • 41
0
votes
1 answer

Streamlit : plot a streamlit bar chart of a data frame value counts

How to display a (streamlit) bar chart of df['column_name'].value_counts() ?
NED
  • 111
  • 1
  • 4
  • 8
1 2 3
99
100