2,293 questions
1
vote
1
answer
48
views
Streamlit Deploy: “Unexpected error” when setting App URL (even if optional field is empty)
I am trying to deploy my Streamlit app using streamlit.io cloud.
On the “Deploy an app” page, when I enter my GitHub repo, branch and main file it shows an Unexpected error under the “App URL” field.
...
Best practices
1
vote
7
replies
72
views
Building a streamlit app that can be run simply with "uvx [package-name]"
I would like to write a python package (let's call it foobarbaz) that would have script (e.g., pointing to foobarbaz:main) which would itself launch/serve a streamlit app. The ultimate goal is to let ...
0
votes
0
answers
14
views
streamlit session_state method behaviour issue
I am new to streamlit. when I am working with streamlit, just like they told in documentation I ran into
in exec_func_with_error_handling
result = func()
st.write(st.session_state['key'])
...
1
vote
0
answers
36
views
Compatibility between streamlit and protobuf
I am unable to use the print(tf.version.VERSION) to check the tensorflow version. Reason being tensorflow looks for runtime_version in protobuf (from what I have learnt) and that is only supported in ...
1
vote
1
answer
33
views
Streamlit DataFrame - how to color a specific cell by row index and column name [closed]
How to color a specific cell (x, y) not based on value?
Is there a way to apply color to a specific cell at a given row and column (x, y), rather than based on its value?
I couldn’t find any ...
0
votes
0
answers
118
views
How to get value of cell in dataframe
I'm new to Python, so please be lenient.
I want to read the value of a single cell from a dataframe based on the selected row. I do this as below, but I get the value not when I click on a record (...
1
vote
1
answer
65
views
Streamlit file uploader returning 400 Bad Request when deployed on Modal (works locally)
I have a Streamlit app that runs perfectly on my local machine but throws a
400 Bad Request error when deployed on Modal (serverless container).
Here’s the relevant setup:
streamlit_app.py
import ...
0
votes
0
answers
67
views
Streamlit app throwing "NotFittedError: idf vector is not fitted" even though TF-IDF pipeline is fitted and works locally
I trained a sentiment classification model using a scikit-learn Pipeline that includes a TfidfVectorizer and LogisticRegression classifier.
Everything works perfectly on my local machine, but when I ...
3
votes
1
answer
56
views
Why does st.html in Streamlit doesn't reflect when the style changes?
I wanted to have a st.divider with different colours and apparently there is no colour parameter for this function. So, I ended up using st.html with style like below:
st.html(
'''
<style&...
1
vote
1
answer
176
views
How to get headers from a request in Streamlit
Hello we have a Streamlit app deployed in Azure and we want to do the azure authentication. Part of it is that we receive the users info after authorization in these headers:
X-MS-CLIENT-PRINCIPAL-...
0
votes
1
answer
94
views
RuntimeError: Numpy is not available when running Streamlit + PyTorch + Torchvision app on Streamlit Cloud
`I’m deploying a Streamlit app on Streamlit Cloud that uses PyTorch and Torchvision for image segmentation.
Locally, everything works fine, but when I deploy on Streamlit Cloud I get this error:
File &...
0
votes
1
answer
110
views
Why does Streamlit throw "ImportError: cannot import name 'get_all_transactions_by_user' from 'db'" even though the function exists?
I’m building a personal finance management app in Streamlit with multiple pages (dashboard.py, transactions.py, budget.py, export.py). I have a db.py file that contains all database functions, ...
0
votes
0
answers
58
views
interactive matplotlib as webapplication
I am currently trying to create an interactive web-app to display and work with multi-graphs, ideally with streamlit. I have a first working version based on matplotlib (inspired by the netgraph ...
0
votes
1
answer
45
views
File not reaching backend on Streamlit - stuck on uploading on backend (localhost)
I've been trying to upload a file to streamlit and it is getting stuck on the uploading part. It was working perfectly before, the LLM was connected and I was getting correct responses. Then I added ...
0
votes
1
answer
72
views
when streamlit_app.py file are under nested folders then ModuleNotFound Error comes for other import s in streamlit cloud
we have streamlit based project and deployed on streamlit cloud and it was working fine when main file streamlit_app.py was under src and now move the main file under nested folder of src/alpha/...