Questions tagged [streamlit]
Questions about Streamlit and custom machine learning models in Streamlit.
streamlit
2,313
questions
0
votes
0
answers
19
views
Streamlit - Text color in Menu
When I'm on page 'X' in the menu, the background color changes to a darker shade, and the text turns solid black. However, on the other pages, the text appears in a lighter black, almost as if there's ...
0
votes
0
answers
13
views
ValidationError: 1 validation error for GoogleGenerativeAIEmbeddings model field required (type=value_error.missing)
I am trying to integrate the GoogleGenerativeAIEmbeddings from the langchain_google_genai library into my Streamlit application. However, I am encountering a ValidationError related to missing fields ...
0
votes
1
answer
29
views
Rearranging PDF Pages using python [closed]
I am trying to create a file converter application using streamlit in which i am trying to convert the input files into various file formats, I am stuck with the functionality of rearranging/...
0
votes
0
answers
18
views
Navigate to a different page after login streamlit
I am building a data analysis and visualization web app using streamlit with firebase authentication. The login is successfully but it has failed to switch to the main dashboard page.
Here is the code....
0
votes
0
answers
29
views
My app RERUNS from the beginning every time I enter a message in an st.chat_input(). How can I prevent the rerun from happening?
I have a simple chat bot application with a simple chat interface.
import streamlit as st
# Function to handle when some text is entered into the chat_input() by the user
def handle_chat_input():
...
1
vote
1
answer
33
views
Number of POIs per H3 hexagon for cities in streamlit app - hexagons not showing
I create a streamlit application, which is supposed to let the user select an area and then calculate the number of POIs per H3 Hexagon unit in this area. Somehow the hexagons are created but do not ...
0
votes
0
answers
16
views
Streamlit: keep fragment running while the page loads
I have a Streamlit UI with this code
import streamlit as st
import time
_LOREM_IPSUM = """
Lorem ipsum dolor sit amet, **consectetur adipiscing** elit, sed do eiusmod tempor
incididunt ...
0
votes
2
answers
24
views
How to fetch the URL in streamlit? when I use oauth2.0 to generate the access token
I have used oauth2.0 implicit flow to authenticate and generate the access token using IAM and internal service provider, I can see the access token generated in the URL but I'm not ale to fetch that ...
1
vote
0
answers
39
views
How to hide API key when sharing on Github
I am doing a project with Python. I don't want the api keys to be visible when I share my code on Github, but if they are not visible, I can't deploy with streamlit. What should I do?
For now, I am ...
-4
votes
0
answers
22
views
Alterar a ordem de um gráfico [closed]
Estou construindo um dashboard e streamlit, utilizando pandas, plotly.graph_objects e plotly.express e preciso alterar a ordem das informações que aparecem, dessa forma encontrei um jeito que ...
-1
votes
1
answer
31
views
how to show all element and align each line properly without any extra spaces in streamlit [closed]
I want to show results inside a box having a scroll feature , but when I try to display it , text are not in proper alignment. Also some extra line space is coming.
I have try to fix using custom css, ...
0
votes
0
answers
23
views
How to keep ag grid filter after selecting all filtered?
I have an ag grid table that I am filtering, and upon a button click it is set to select all the rows that are currently filtered using selectAllFiltered(), and after clicking the button the filtered ...
0
votes
0
answers
15
views
ImportError: cannot import name 'pkg_resources' from 'ydata_profiling'
I am new to streamlit and I am trying to use the ydata_profiling library for AutoML, but I keep getting the error of ImportError: cannot import name 'pkg_resources' from 'ydata_profiling'.
I tried ...
0
votes
1
answer
22
views
Can't get the pandas style.hide() method to work properly
I want to be able to hide certain rows/columns from my styled Dataframe post-styling.
This is how my dataframe/style object currently looks, and is produced by the below code
data = {
'site': ['...
0
votes
0
answers
23
views
Why am I getting an 'insufficient quota' error with OpenAI API despite not using my quota? [duplicate]
# Import required libraries
from dotenv import load_dotenv
from itertools import zip_longest
from langchain_openai import ChatOpenAI
import streamlit as st
from streamlit_chat import message
import os
...