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
0 answers

tensorflow module not found, while using streamlit

PS D:\projects\fashion-recommender-system> streamlit run main1.py You can now view your Streamlit app in your browser. Local URL: http://localhost:8501 Network URL: http://192.168.1.213:8501 2022-05-04 14:12:41.903 Traceback (most recent call…
0
votes
1 answer

Plotly graph having like different y axis for data

this is my first post and so far I haven't found (as far as I have searched). So I am trying to build a dashboard with streamlit and for the plots I am using plotly. I followed and example to have 'DateTime' as X axis and two different columns to…
Carlos-D
  • 3
  • 2
0
votes
1 answer

Writing a website in streamlit, how can I avoid using long if-chains?

I'm writing a project for a class and I do not know how to not make the code as a long if chain, would it work to make it as a class instead then call that class through out the program? import streamlit as st import pandas as pd import numpy as…
Dielit
  • 5
  • 2
0
votes
0 answers

How to display multiple plots with different shapes with Streamlit?

I am trying to display multiple plots with different shapes. However, I got an error message ValueError: x and y must have same first dimension, but have shapes (10000,) and (5000,) Actually, they have different shapes and must be displayed in…
Huy DQ
  • 121
  • 1
  • 11
0
votes
1 answer

Format Changing Problem of Number Input in streamlit

The program offers the number format as Default in a.b format (like 1.2) but I want to show as a:b format (like 1:2) How can I change this? I tried below but it didn’t work: (st.number_input(“time”)).replace(".",":")
murat taşçı
  • 64
  • 1
  • 2
  • 22
0
votes
1 answer

altair chart syntax error when deploying in streamlit

I'm getting an infuriating syntax error in streamlit that I can't figure out. This code works totally fine and displays the chart: ward_housing_cost = alt.Chart(df_ward).mark_bar().encode( alt.X('Ward:N', axis=alt.Axis(format='d')), …
0
votes
2 answers

Streamlit time input function doesn't support each single time

Is there any way to show the time menu like above on streamlit? This menu should show every single hour and minute. Other hand streamlit time input provides only pre defined time arrivals like 08:00 08:15 08:30 08:45 etc. I don't want this. How can…
murat taşçı
  • 64
  • 1
  • 2
  • 22
0
votes
1 answer

Match countries with continents in streamlit selectbox

I have a df where I've used pycountry to get full names for country column and continent column and make select box in streamlit like so, country continent Hong Kong Asia Montenegro Europe Rwanda …
AJ.
  • 19
  • 8
0
votes
1 answer

update a table on pandas by id

Hi I have a code connected to DB (SQLite) this is the data frame that shows on the web app Dataframe as you can see, in row 9 there is no value in the result column what I want to happen is that a user can update a specific result by row id this is…
Dor Elia
  • 3
  • 6
0
votes
0 answers

Streamlit does not showing a map and there's no trouble

I'm working on estimation chlorophyll-a using a Landsat 8 image and then I’m trying to build an web-app which is using streamlit and geemap library. But my map doesn’t showing in the web-app. When I ran it from share streamlit, everything seemed to…
0
votes
0 answers

Can I perform mathematical operations on comma-separated numbers?

I have this column in a streamlit dataframe, which is able to sort numeric values. I also want to add commas to the values so that it's more readable. However, when I do this it converts the column values to string format and so the column isn't…
0
votes
1 answer

np.histogram producing very small counts in specified bins

Trying to generate a simple histogram using 1% bins and a simple normal distribution but I am getting incredibly small bin counts - where am I messing up the implementation of np.histogram? Here is the basic implementation: import streamlit as…
C. Nielsen
  • 11
  • 2
0
votes
1 answer

Stuck on data frame query

I am working on a project where I import SQLite database in data frame and then convert string dates to dates using toCorrect = ["dt_ocurred", "init_action_ship_dt","target_dt", "final_action_ship_dt", "done_dt", "update_dt",…
0
votes
1 answer

Streamlit. How can I display only the focused area on the map?

After loaded the web, the world map was displayed but I actually included New York City data only. Is there any way to auto-display New York area only, when the page loaded? And the title "Motor Vehicle Collisions in New York City" became 2 lines…
0
votes
1 answer

Python streamlit dynamic filter

I try to do a dashboard with streamlit, but I do not succeed to impact the graph with the filter. You can see what i did below : year = st.sidebar.multiselect( "select the year : ", options=df2["Year"].unique(), …
bruce
  • 11
  • 2