Questions tagged [streamlit]
Questions about Streamlit and custom machine learning models in Streamlit.
1,851
questions
0
votes
0
answers
15
views
How to change the color of a button inside a StreamLit iframe with CSS
I am building a StreamLit app with a streamlit-text-label component (which is a front end for label studio, which uses AntD buttons).
For accessibility reasons I need to change the color of the blue ...
0
votes
0
answers
12
views
Modify Streamlit echarts inside loop without adding new chart
I want to update my echart with dynamically fetched data, but when I run below code, it adds a new chart to my page.
Unlike t.text(markdown) which doesn't add but modifies existing text which is what ...
0
votes
0
answers
16
views
Select folder option in Streamlit
Any alternative for the below code
import streamlit as st
import tkinter as tk
from tkinter import filedialog
# Set up tkinter
root = tk.Tk()
root.withdraw()
# Make folder picker dialog appear on ...
0
votes
0
answers
5
views
Send multiple flows of data using Python and Streamlit
I am trying to create a program, that reads a json message, copy that to a database, and a streamlit application controls the copy of the message, to create an artificial database by setting some ...
0
votes
0
answers
14
views
How to render a PDF browsing component in Chrome when using streamlit?
Here are the code using streamlit to render a PDF in browser:
def configure_PDF(file):
with tempfile.NamedTemporaryFile(delete=False) as tmp_file:
fp = Path(tmp_file.name)
fp....
0
votes
1
answer
25
views
displaying snowflake data as drop downs in a table in streamlit
I am trying to build a streamlit app that connects to a snowflake table, fetches data and displays as editable table in streamlit and writes back the edited info back to snowflake, I am able to get ...
1
vote
0
answers
18
views
How to use a custom toml file path for Streamlit screts?
Assume I have a toml file which contain secrets at /some/filepath/secrets.toml. How do I specify this path for Streamlit to use?
Currently, the streamlit docs mention .streamlit/secrets.toml as the ...
-1
votes
0
answers
28
views
How to install Java on Streamlit cloud to use Pyspark code?
I am new to PySpark and first time trying to run it on streamlit cloud. I have deployed the app using Github repo and I am getting below error.
RuntimeError: Java gateway process exited before ...
0
votes
0
answers
18
views
Streamlit Ports and Apache
I am trying to execute a streamlit file from PHP code.
$port = "8502"; $command = escapeshellcmd("streamlit run --server.port ".$port." python/Manager/Home.py $path $...
-1
votes
0
answers
8
views
Issue with Displaying Different Colors for Multiple Livestock in Streamlit-Folium
I'm currently applying a map visualization app using Streamlit and Folium.
I'm trying to display multiple livestock (chicken, pig, cow) on the map, each with a different color. However, I'm facing an ...
0
votes
0
answers
26
views
Filter data in st.data_editor of streamlit
Summary
I´m searching for an easy solution to filter data in st.data_editor, when the df contains a huge amount of data. In my case, I load 10.000 rows (3 columns) into the st.data_editor. I want to ...
0
votes
1
answer
33
views
Your app is having trouble loading the streamlit_chat.streamlit_chat component
I'm facing issues when running a stremlit app locally.
I get the following error: Your app is having trouble loading the streamlit_chat.streamlit_chat component
This error comes up when I try to run ...
0
votes
1
answer
16
views
Streamlit is not Recognising my Python File post deployment
I have created a Streamlit app which runs fine on my local with command streamlit run app.py, however when i am trying to host it on streamlit i am getting following error:
[06:08:51] 📦 Processed ...
0
votes
1
answer
26
views
run streamlit from python script
I'm trying to run streamlit out of my python script with the following command:
os.system('streamlit run 'r'G:\Python\Projekte\Userausgabe\1.3_Userausgabe.py')
When I run my script, it works as ...
0
votes
1
answer
42
views
Integrating Gradio/Streamlit with Flask for Multi-Model Hosting and Route Customization
Issue:
I'm in the process of deploying a sophisticated web application with a focus on machine learning model hosting using Gradio/Streamlit. While both frameworks offer exceptional ease-of-use, they ...
0
votes
0
answers
26
views
Langchain not returning full response expected from OpenAI model
I am developing an app using streamlit and langchain to recommed albums to get into artists I don't know well yet.
The problem is, langchain is not returning the full response from the OpenAI model, ...
0
votes
0
answers
25
views
Not possible to load origin data in st.data_editor of streamlit in python
Summary
Hi all. I created a CRUD-App, where I want to establish a “reset” function to load the original data back to the st.data_editor, after some modifications were done. (e.g.
You see below, that I ...
0
votes
2
answers
34
views
Streamlit AttributeError: st.session_state has no attribute 'processComplete'
Description of the Problem:
I'm working on a Streamlit app for document processing and chat integration with OpenAI. I've initialized the processComplete attribute in my code, but I'm encountering the ...
-1
votes
0
answers
12
views
Getting Module Not Found Error in Streamlit App Deployment
enter image description here
I am facing with this trouble, what should I do in this case?
I need some solution about dependencies and where I can exactly do my work without any kinds of barrier. ...
0
votes
1
answer
71
views
build and deploy docker container to build fast api app on Azure web app
I am currently testing a small project and developing within the Azure ML notebook environemnt. Due to the confidential issue, I have to test within the Azure. I have a python script that I would like ...
0
votes
0
answers
23
views
Mock a function in a streamlit app during e2e testing
I have a e2e testing framework for running my streamlit app but am having trouble mocking some functions that make SOAP requests. Where in my framework should I be adding the mocked function?
import ...
0
votes
1
answer
31
views
How to fix errors when installing modules in a Docker image?
I encountered an issue while making a docker file wherein the message:
"ERROR: failed to solve: process "/bin/sh -c pip install streamlit" did not complete successfully: exit code: 1&...
0
votes
2
answers
44
views
How can I read this dataset from its url?
i want to write a program that gives me the options of reading a particular dataset from my local machine or reading it directly from its url source (https://data.world/missdataviz/superstore-2021/...
0
votes
0
answers
32
views
Python Asyncio, eventloop issue in streamlit app
I want to build a simple streamlit application where user can start the button and transcribe the voice in real-time using AWS Transcribe. I tried this with example given in AWS repo (https://github....
0
votes
0
answers
25
views
Streamlit does not display the FastAPI through iframe
I'm having trouble running a FastAPI application in Streamlit.
I want to integrate the knowledge graph application as one of the pages in Streamlit (for presentation purposes, to make it more readable)...
0
votes
1
answer
55
views
The problem with displaying an application through an IFrame in Streamlit (nothing is visible)
I'm having trouble running a FastAPI application in Streamlit.
Context: In Streamlit, I have 3 pages with simple ML applications. I also have a separate application for generating a knowledge graph, ...
0
votes
1
answer
29
views
Dlib install error in pip process in streamlit application
I developed the streamlit application which is working fine in my Windows 10 local PC but when i tried to deploy the application in streamlit community cloud, the pip installation failed on dlib ...
1
vote
0
answers
34
views
Streamlit logic with session states
Idea:
Say I have 4 checkboxes with keys A, B, C, D and I also have a dataframe with A, B, C, D as indexes and all of them having some default value, like this:
import pandas as pd import streamlit as ...
-2
votes
2
answers
21
views
Trying to run streamlit on python terminal and i keep getting this error
for some reason i can no longer run streamlit from my Pycharm terminal, no matter what i do on any project even ones that have worked previously i cant run it, any ideas
this is the errors im getting (...
0
votes
1
answer
28
views
Is It possible to email interactive charts using Plotly, Dash, or Streamlit?
I wanted to write code to load in some data, graph it with Plotly, organize it in either a streamlit or dash dashboard, and email these insights to colleagues on Microsoft Outlook that they can ...
0
votes
1
answer
49
views
Streamlit bug out of nowhere while I can still run it successfully in localhost
My app was working perfectly fine months ago and still works fine when I host it locally but now I see this bug I can't solve.Has anyone encountered this and have a fix for it? To be specific, the ...
0
votes
1
answer
27
views
Error ModuleNotFoundError: No module named 'cmake' when installing pyarrow [duplicate]
I'm trying to install streamlit, which requires pyarrow. But when I install pyarrow, I get the errow "ModuleNotFoundError: No module named 'cmake'". I have already installed cmake (version 3....
-1
votes
0
answers
24
views
Import a svg for the bokeh library
I am writing a voice activated chatbot in python and i completed all of the logic code and I am focusing on the design now. I saw that a Bokeh button has a parameter for icons where you can insert a ...
0
votes
0
answers
14
views
Download-Button reloads app and results output is gone and need to re-run in Streamlit
I use the download button and after using it to download e.g. data the app reloads and the output is gone.
Can we overcome this so that when downloading the output remains and app should not reloads.
...
0
votes
1
answer
148
views
How to clear input field after hitting Enter in streamlit?
I have a streamlit app where I want to get user input and use it later. However, I also want to clear the input field as soon as the user hits Enter. I looked online and it seems I need to pass a ...
0
votes
0
answers
22
views
cant pass variable into df.query() [duplicate]
I am having an error for this query selection.
import pandas as pd
import streamlit as st
import plotly.express as px
st.set_page_config(page_title="Asset List", page_icon=":bar_chart:&...
0
votes
0
answers
24
views
Streamlit AG-Grid strange behavior
The following are part of a streamlit python code using AGGrid to extract data from a snowflake table and allow user to edit data in the grid, but when I try to update a cell's value, always the ...
0
votes
1
answer
64
views
Is there a way to convert a .py file to a .txt/.pdf file, such that is does not save that txt/pdf file into storage?
I'm creating a demo for a chatbot that takes a github repository as an input, such that you can ask it questions about the code in the repo. I was working on the UI and I want the user to be able to ...
2
votes
1
answer
57
views
How can I get my data to display in streamlit from excel? [closed]
Only my dataframe is displaying in the web app. Code below:
import pandas as pd
import streamlit as st
file_path = "C\file\path\here"
dataset = pd.read_excel(file_path)
st.set_page_config(...
0
votes
0
answers
59
views
Streamlit option_menu
I am using option menu from streamlit_option_menu import option_menu to create a menu and it works fine but when I choose a option that calls for example second_menu.py and I want to display the menu ...
0
votes
1
answer
13
views
Streamlit App Predictions Not Updating Despite User Input Changes
I’m working on a breast cancer project. However, I’m having issues with my prediction on Streamlit. Whenever I click on the predict button, it shows the same prediction no matter the adjustments I ...
1
vote
1
answer
36
views
Streamlit - Using selected text as input on button click
Is there a way in Streamlit to:
Select text in a text area
Click a button to have the selected text be used an an input to a backend function
So this would take only the text excerpt selected by ...
0
votes
0
answers
106
views
Failed to build dlib ERROR: Could not build wheels for dlib, which is required to install pyproject.toml-based projects
I am not able run my streamlit app and encountering the error
Collecting mdurl~=0.1
Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Building wheels for collected packages: dlib, face-...
1
vote
1
answer
50
views
How to parse AgentExecutor (ReAct) feedback to Streamlit?
I wanted to stream my ReAct agent "Action Input" to my Streamlit app
The problem that I have is that the agent pipes the feedback into the shell but not the screen. Documentation doesn't ...
2
votes
1
answer
41
views
Streamlit is alphabetising the X axis of line_chart
Here is my code:
temps = {'Day': ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
'Temp' : [20, 17, 28, 31, 25, 22, ...
1
vote
1
answer
31
views
Streamlit Bokeh Event Callback to get Clicked values
I am trying to get values from the click when the user clicks on dot in scatter plot.
the below shows the plot but no values are shown for the dictionary at the end.
Since it's streamlit, it uses ...
0
votes
0
answers
27
views
df.style.highlight_max not supportive in Streamlit
I am trying to build an interactive dashboard in streamlit and I am almost through with it barring this one problem of highlighting particular values in a similar set of columns. Because I am using a ...
1
vote
1
answer
167
views
Loading different document types in langchain for an all data source qa bot [closed]
I am trying to build an application which can be used to chat with multiple types of data using the different langchain and use streamlit to build the application.
I am unable to load the files ...
0
votes
1
answer
64
views
How to Download a word file using streamlit
I am trying to setup a button that takes takes files from a local directory and lets you download them
this is my code right now :
import io
import streamlit as st
import docx
f = open('Analysis....
0
votes
0
answers
33
views
Counting of classes in YOLOv8 Streamlit app
I am implementing Streamlit webapp for YOLOv8 custom object detection for images. Model is already trained and i am using it’s weights to perform predictions for multiple images with classes counts ...