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

Streamlit app does not display data obtained from python socket

I used the following code: import socket import struct import pandas as pd import streamlit as st UDP_IP = "127.0.0.1" UDP_PORT = 9000 sock = socket.socket(socket.AF_INET, # Internet socket.SOCK_DGRAM) #…
umair durrani
  • 5,597
  • 8
  • 45
  • 85
0
votes
0 answers

Streamlit : How to empty sidebar in parallel with a form?

Considering this question as the continuation of the question in Streamlit : How to reload a page using a button and storing previous informations after each click, I would like to know how to empty a text input in a sidebar using the…
NED
  • 111
  • 1
  • 4
  • 8
0
votes
0 answers

Embedding parametric CAD drawings in Streamlit webapp

I need to develop a web-app which contains parametric CAD drawings. The user should be able to change the dimensions of the object that is then updated in the drawing. The app should then calculate the volume of the updated object for other…
Bart
  • 1
0
votes
0 answers

How to add csv data to pandas database and query fields in complex nested lists?

I am new to python. I have a python script that reads a csv file with data from a camera. The csv file contains a row of data for each event captured. The rows change dynamically with the 'object' field growing as more objects are detected in each…
Francoiss
  • 11
  • 3
0
votes
2 answers

I am using Streamlit to build a form that based on answers builds another form, how do I hide the form so they don't stack?

I am building form using streamlit. I use the session_state to control what section of the questions to appear. This is section 1 but there are over 10 sections, not all sections get asked, it's based on you how you fill out the last section. …
Jeremy Palmer
  • 11
  • 1
  • 3
0
votes
1 answer

Plotly - Plot labels/notes from dataset on graph (Streamlit)

I have two TSV files: One with data: "Timestamp" "Colum1" "Colum2" "2022-03-04 11:59:00" "10" "42.0974" "2022-03-04 12:01:00" "20" "24.9401" "2022-03-04 12:03:00" "17" "64.6168" "2022-03-04 12:07:00" "33" "43.5747" "2022-03-04…
rotten77
  • 86
  • 1
  • 6
0
votes
1 answer

Is there a better and fast way to check user input beside IF statement using python and streamlit?

I have a dataframe that includes about 22 columns. I want to allow the user to perform a custom filter based on his input. Where the app displays a list of checkboxes that the filter is made based on the checked one. Example of dataframe: data =…
DevLeb2022
  • 653
  • 11
  • 40
0
votes
1 answer

Streamlit unable to open files in project folder

Yesterday I built a Streamlit project that uses .dat and .xml files to detect faces and facial landmarks. It was working perfectly the day I built it, but today it cannot find the .xml and .dat files. They are located in the same folder as my…
0
votes
1 answer

Reading from mongodb and converting in dataframe

Hi I am trying to read data from MongoDB and trying to convert it into data frame but getting an error that says "("Could not convert ObjectId('620d3f43ae93743dbb6f6846') with type ObjectId: did not recognize Python value type when inferring an…
0
votes
0 answers

How to Launch streamlit local server from within nativefier

This excellent thread Streamlit Deployment as an Executable File shows how to deploy a website as an executable using the smart-tool, nativefier. nativefier --name appname http://localhost:8501 --platform windows \ --icon ../apps/icon.ico…
alant
  • 173
  • 2
  • 13
0
votes
1 answer

Select year from object type field using python and streamlit

I have a dataframe that includes a column "birthdate" but its of type object like this 1984-11-15 format y%-%M-%d. I want to convert it to date and just extract the year with no duplication in order to filter the dataframe based on the year. I am…
DevLeb2022
  • 653
  • 11
  • 40
0
votes
4 answers

How do I get around the .py extension error?

I am pretty new to app development so please help. I am getting the following error while trying to run the app from anaconda prompt Error: Streamlit requires raw Python (.py) files, but the provided file has no extension. I have already tried…
sarwat zabeen
  • 11
  • 1
  • 1
0
votes
2 answers

How to make N checkboxes in streamlit?

I want to make a remainder app, kind that user can infinity many times make checkboxes. for example: do hw read this article ... it is basically a to do list. ''' import streamlit as st hw = [] todo =st.text_input("Input To do list elements…
0
votes
1 answer

How to plot a gif in streamlit?

I tried to plot a gif on my streamlit site, but it doesn’t generate anything. It doesn’t give any error, it just keeps the environment empty as if nothing had been run in the code. Below I left the piece of my code responsible by the plot of the…
User8563
  • 123
  • 1
  • 2
  • 13
0
votes
1 answer

How do I display multiple maps within my Streamlit selection?

I am learning how to use Streamlit, and I would like to add a side-selection which lets the user select which radius they would like displayed on a Folium map. So far, I have been able to display the map and the select side-bar, but I do not know…
Jimmy K
  • 133
  • 11
1 2 3
99
100