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

I don't understand the error message - Streamlit app

I have a streamlit app that I wrote on other computer and it was running smoothly. because I needed to change computers, I cloned it from my repo to the new computer and created directory with env for it, However I am not able to run it. executing…
Sam.H
  • 193
  • 2
  • 14
0
votes
1 answer

Text align in streamlit st.info information box

How to align text (justify) in streamlit information box(st.info) import streamlit as st # Generate Three equal columns c1, c2, c3 = st.columns((1, 1, 1)) with c1: st.info("""Streamlit is more than just a way to make data apps, it's also a…
Ailurophile
  • 2,552
  • 7
  • 21
  • 46
0
votes
1 answer

model.predict gives an error could not convert string to float

I'm using Streamlit to build a machine learning model to predict the price of a car. After splitting the data into train and test and choosing the best model, I need to predict the price of a car based on the user input ax1,ax2 = st.columns(2) with…
Nour H
  • 1
  • 1
0
votes
1 answer

The streamlit does not refresh the dataframe on the localhost

I am New in pandas and streamlit , What I am trying is to filter such a dataframe using streamlit selectbox but unfortunately everything is going well except that when changing the filter value it does not reflect on the shown table as you could…
aboarab
  • 45
  • 5
0
votes
1 answer

Column names not displayed with st.dataframe after PostgreSQL `SELECT *` into Pandas DataFrame

Python 3.8.10 streamlit==1.9.0 pandas==1.4.2 psycopg2-binary==2.9.3 Loading a Postgres table directly into a Pandas DataFrame with the following code. df = pd.DataFrame(run_query("SELECT * FROM schema.tablename;")) Displaying it with either…
RightmireM
  • 2,381
  • 2
  • 24
  • 42
0
votes
0 answers

I have an error in docker-compose about undefined network,

I am trying to dockerize two applications, one being streamlit, the other being fastapi, I have built the individual docker images for them, and now trying to run them at the same time so they communicate using docker-compose. I have written the…
mark
  • 41
  • 5
0
votes
0 answers

Streamlit file uploader error in VCF file format

I want to read vcf file using streamlit file uploader. but i am getting TypeError: expected str, bytes or os.PathLike object, not UploadedFile import io. import os import pandas as pd import streamlit as st ifile=st.file_uploader('choose a…
0
votes
1 answer

Is there any way to share images between two streamlit webapps?

I want to link 2 web pages made using streamlit and hosted using Heroku. One of them removes the image background and the other does an image classification task. (They could not be made into one due to slug size limits of Heroku). At present, the…
0
votes
0 answers

Streamlit Deploy Platform or Hosting Service

So I have a Python Streamlit Source Code and it has a massive size model, in total of around 4-5GB. Is there any Hosting Service or Platform where could i deploy my Streamlit Project to? Something like heroku, but currently heroku could connect to…
Ken Arya
  • 15
  • 6
0
votes
0 answers

List of chooses depending on user permissions

I'm building simple app on streamlit. I'm struggling with making list of chooses depending on user permissions. utils.py Dict with pages: pages = { "Start": start_page, "Test kabli": cable_test_page, "ARP": arp_page, "FGRestart":…
SPR
  • 15
  • 4
0
votes
1 answer

How to make graph using streamlit with the widget, but theres multiple widget?

so i want to make callback graph that can display the graph within theres two widget there (radio and selectbox), but i have some problem in here, the radio button (gender clasify) theres no change when i choose the gender, the graph still stay at…
sildaf88
  • 11
  • 3
0
votes
4 answers

How to access the save results of yolov5 in different folder?

I am using the below code to load the trained custom Yolov5 model and perform detections. import cv2 import torch from PIL import Image model = torch.hub.load('ultralytics/yolov5', 'custom', path='yolov5/runs/train/exp4/weights/best.pt',…
0
votes
1 answer

Running streamlit with tensorflow causes crash when loading model

When running model = load_model('path_to_model',custom_objects={'my_cutome_activation': my_cutome_activation}) Causes a crash layer = deserialize_layer(layer_data, custom_objects=custom_objects) File…
YScharf
  • 1,638
  • 15
  • 20
0
votes
0 answers

Stale element reference exception - Selenium

so I am creating a testing framework for a webapp but first I have to login to the site in order to begin the tests. My problem is that the login is in two parts, first page where you enter your email and then click an access button. The webapp…
Halfbrowse
  • 31
  • 4
0
votes
1 answer

save the AgGrid data to sqlite with python

Hi im building an app to save results of projects that we do at work and I want to update a table with aggrid and it will also update the sqlite DB that im using I manage to edit on the web app but it will not update the DB if anyone can tell me how…
Dor Elia
  • 3
  • 6