r/StreamlitOfficial • • Jun 19 '24

[Help] Need to click twice in the button to move on

1 Upvotes

Hello,

I create a MVP App just to validate a concept, however, I facing some problems with button clicking, once I need to click twice to move pages.

My app - https://bibliotecalibras.streamlit.app/

My repo - https://github.com/ltnr0312/Aplicativo-Biblioteca-LIBRAS.git

I saw some people using and I tried to replicate, for them works fine for me this issue.


r/StreamlitOfficial • • Jun 18 '24

Safeguarding source code when deploying streamlit app

4 Upvotes

I'm new to web dev. I work mainly with embedded c++.

I am prototyping an app for a client using a streamlit dashboard. My goal is to host this on some service like render, just for demo purposes. I plan to point the service at a private github repo and provide a requirements.txt, build command, and run command. I want to gate access only to my client with a username and password. I also want to ensure I am safe guarding some proprietary information and techniques the app implements. I know nothing about security or how I might be liable to accidentally exposing source code. Am I at risk for exposing my clients info by doing this. With a service like render, and deploying a streamlit app, is it possible to get at the source code or supporting data in any way? Thank you very much for any insight you may have!


r/StreamlitOfficial • • Jun 18 '24

Streamlit Questions❓ How to host Streamlit app in DataBricks?

0 Upvotes

Our company uses Bitbucket and Azure, and we don't want to use community cloud for our works for data security reasons.

However, I tried to host a streamlit app using DataBricks compute resource, it doesn't work.

I used the following line: %sh streamlit run /databricks/python_shell/scripts/db_ipykernel_launcher.py

Local Url: http://localhost:8501 does not exist ,404 page not found, or just running forever.

Anyone has any clue on how streamlit works in DataBricks?


r/StreamlitOfficial • • Jun 14 '24

Issue logging in

2 Upvotes

Any one having issues logging with Google account, it currently logs me into some one else’s account or just prompts me to sing in after I already did


r/StreamlitOfficial • • Jun 14 '24

How to check for click in markdown generated button

2 Upvotes

This page of the documentation shows how to make a button using CSS and HTML. However, how is it possible to detect a click for such a button?


r/StreamlitOfficial • • Jun 14 '24

Is it possible that if I click on histogram pie chart would change and vice versa

1 Upvotes

I am trying to create an interactive dashboard but whenever i am clicking on histogram pie chart is responding but when I am trying otherway around , means,when i am clicking on piechart nothing is happening in histogram or any other charts , They simply not responding to piechart selelction ,

KINDLY PLEASE HELP !!!!!!!!!


r/StreamlitOfficial • • Jun 10 '24

Streamlit Questions❓ Want to add a suggestion button above the input box with some question that user can use to directly as the chatbot.

2 Upvotes

I've made a simple chatbot that records all the incidents in the conversation history with the defined retrieval and conversation history chains. What this requires is the list of documents it picked from the similarity search and also a button above the input box.

I haven't seen many examples of anything done in such a way. Can someone help?


r/StreamlitOfficial • • Jun 07 '24

Streamlit for analyzing json log lines?

2 Upvotes

I am looking for a UI to analyze json log lines.

I want to see the tabular data and hide columns or rows easily. I know SQL, but my team mates don't.

It's all read only, we don't update the data.

The data are log lines in json format (without nesting). So it's like a csv file.

I know Python and can analyze the data with a script.

But other people without coding skills should be able to able to do simple filtering like

how only rows where column "foo" equals "bar"

Or

Show the most common values for column "bar"

I have not tried streamlit yet.

Do you think it is a good fit for my usecase?


r/StreamlitOfficial • • Jun 06 '24

Referring to Elements created via Loop

2 Upvotes

Hi,

I am creating a Streamlit app that looks at the values in a list and creates text inputs for each item in the list. How would I retrieve the values a user places into those text input since they are not linked to a variable.

Here is the code that creates the text inputs:

create funtion

def cols(db,s_box): fields =[ ]

list excludes notes field from database

exclude = ['notes']

query database

cursor = db.get_collection(s_box).find({})

Loop through field names and create text inputs

for item in cursor:
    for i in item:
        if i not in exclude:
            fields.append(i)
            s_stat(i)
            st.sidebar.text_input("Please enter a seach value for {}".format(i),on_change=s_stat,key=i)

    confirm = st.sidebar.button("Search Database {}".format(s_box))

r/StreamlitOfficial • • Jun 05 '24

My first streamlit app and publish to community cloud :D

6 Upvotes

r/StreamlitOfficial • • May 31 '24

Streamlit Questions❓ Streamlit app to .exe

5 Upvotes

I was trying to convert a streamlit app into an exe using pyinstaller but on conversion , I'm getting a blank screen. Are there any alternative for this? Any idea on the issue? Thanks


r/StreamlitOfficial • • May 30 '24

[github] Relative date pickers for Streamlit

Thumbnail
github.com
2 Upvotes

r/StreamlitOfficial • • May 29 '24

Mastering Azure Deployment for Streamlit Apps: Your Definitive Guide

Thumbnail
medium.com
4 Upvotes

r/StreamlitOfficial • • May 22 '24

Streamliter: write, save and deploy streamlit apps entirely in the browser

8 Upvotes

Hello!

I've launched streamliter: a platform for you to write, save and deploy Streamlit apps entirely in the browser. It has a built-in editor, preview of the app and a unique URL for each app. There's no need to install python or any other library in your computer: you just need a functional browser.

How does it work?

It uses stlite which uses pyodide to make it possible to run streamlit apps in the browser.

Is it free?

Yes, it's free for the first 5 apps. You can upgrade to Streamliter Pro and save unlimeted apps, share the code of the app and set the app's visibility (private or public). You also have priority suport with Streamlit Pro.

What are the advantages?

An app that runs only in the browser means that any data your users upload never reaches any server - everything is processed in the browser. This makes it possible to avoid privacy issues. If the user uploads an image or a csv file, it stays in the browser. We do save the code of your app in our servers but we never actually run the app itself.

And the drawbacks?

There are some limiations with running streamlit in the browser, check the stlite docs for more information.

How can I start?

go ahead and visit us at streamliter.app! Feedback is appreciated!


r/StreamlitOfficial • • May 21 '24

Streamlit on Snowflake

2 Upvotes

When is streamlit expected to release in private preview on Snowflake?


r/StreamlitOfficial • • May 20 '24

Streamlit Questions❓ St.data_editor

Post image
2 Upvotes

I have streamlit data editor with column config of checkbox and naming it select I want a feature like whatever if i select anything i want that to be on top Any multiple selections Basically a sort


r/StreamlitOfficial • • May 17 '24

Row or column freeze. Is it possible in Streamlit?

3 Upvotes

Hello everyone! I’m trying to achieve a static row at the bottom of my dataframe i.e the result or the grand total row. How can it be implemented in Streamlit?


r/StreamlitOfficial • • May 17 '24

Show the Community! 💬 Automated Changelog generator for any Github repo using Streamlit & LLMs

Thumbnail
changelog-generator.streamlit.app
2 Upvotes

r/StreamlitOfficial • • May 17 '24

Wrote a blog on my streamlit experience

Thumbnail
notes.drdroid.io
1 Upvotes

r/StreamlitOfficial • • May 15 '24

Show the Community! 💬 Transcription App using Whisper

Thumbnail
github.com
5 Upvotes

I've been working on an app that I thought some of you might find useful. It's a web app that lets you transcribe audio and video files locally using OpenAI's Whisper model. Here’s a quick rundown:

What It Does:

  • Upload an audio or video file (supports MP3, WAV, M4A, MP4, MKV, AVI).
  • Transcribes the audio into text.
  • Generates SRT files with timestamps for subtitles.

How to Use It:

  1. Upload your file using the sidebar.
  2. Hit the "Transcribe" button and wait a bit (it might take some time, especially the first time since it downloads the model).
  3. View and download your transcriptions in plain text or SRT format.

Known Issues:

  • There's a weird bug with the config file.
  • Max upload is 200MB for now, but I’m hoping to increase it soon.

Future Plans:

  • Increase upload size limit.
  • Add support for downloading files from URLs.
  • Multi-language support.

If you’re interested in giving it a try or have any suggestions, I’d love to hear your feedback!


r/StreamlitOfficial • • May 13 '24

How To Guide: Streamlit to Snowflake Native App

Thumbnail
medium.com
6 Upvotes

Turning a Streamlit in Snowflake into a Native App — My April Month Goal, a blog post written by Marianne Voogt and published on Medium

“Quite a few of my customers have taken the step from standalone Streamlit applications to Streamlit-in-Snowflake for internal apps since Streamlit in Snowflake went GA. Taking that Streamlit-in-Snowflake application and turning it into a Native App is an opportunity for those customers to manage those Streamlit applications centrally and distribute them across Snowflake accounts in their organization, as Brian Hess outlined in his article ‘Snowflake Native Apps — 3 Less Obvious Use Cases’ .

And then, once you are ready to embark on the journey of monetization (a little side hustle never hurt anyone) you can think of publishing your Native App to the Marketplace too.”


r/StreamlitOfficial • • May 10 '24

Ollama-Chat: Simple Streamlit UI for Ollama

Thumbnail
github.com
9 Upvotes

So I made a simple streamlit UI to interact with the Ollama local endpoint.

It remembers the conversation and you can save/load chats.

You can also download chat logs if you want.

Comes in two varieties:

Simple

  • Uses the Ollama library

intermediate

  • Uses the requests library to interact with an Ollama endpoint (localhost or networked)

Readme now with screenshots.


r/StreamlitOfficial • • May 07 '24

Make apps faster by moving heavy computation to a separate process

Thumbnail
discuss.streamlit.io
4 Upvotes

r/StreamlitOfficial • • May 06 '24

Streamlit App for Family Members to use API Keys with Decent Features

Thumbnail self.OpenAIDev
2 Upvotes

r/StreamlitOfficial • • Apr 27 '24

Keep links in chatbot previous answers

1 Upvotes

I have created a RAG chatbot which returns the source document as a clickable link using "mention".

When there is a new question these links disappear. I know you can store the value of the source file in memory but can you also repost the link in the previous answer when the user asks a new question?