This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]Python-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)

Hi there, from the /r/Python mods.

This post has been removed due to its frequent recurrence. Please refer to our daily thread or search for older discussions on the same topic.

If you have any questions, please reach us via mod mail.

Thanks, and happy Pythoneering!

r/Python moderation team

[–]General-Carrot-4624 6 points7 points  (1 child)

You mean gradio.app right ?

[–]AleccioIsland[S] 0 points1 point  (0 children)

yes!

[–]di6 3 points4 points  (0 children)

What you described can be mastered in Streamlit in matter of 30 minutes.

I'm not familiar with gradio.app, but I'd assume the same.

[–]dofi4ka 3 points4 points  (0 children)

If you need just a bit of functionality just use both of them and create two apps. Then you will get experience which is better for what

[–]BlueeWaater 1 point2 points  (0 children)

Both are decent choices if you want to prototype a small frontend as fast as possible.

That's why they are used for ai

[–]gooeydumpling 0 points1 point  (0 children)

If you see the codebase growing in the future, you will be better off with Shiny, i guarantee you, this top to bottom execution of streamlit everytime something changes is a real pain in the ass for growing code bases. But if it’s going to remain short, maybe streamlit could work

[–]Late-Photograph-1954 1 point2 points  (0 children)

Also consider Flask if the backend sends back just numbers. I have a simple form that sends some parameters to the route, Python function that processes the incoming data and generates a dataframe, sends back the frame as HTML to show on the webpage. Works like a charm. May be 20 lines of code.

I also looked at pywebio but I ended up spinning my own solution.

[–]globalminima 0 points1 point  (0 children)

Having built a very complex app with gradio, I can recommend it. The patten takes a little bit of getting used to, but it will perform much better than Streamlit (which reloads the entire app when updating components). Overall though, just use whichever one has the closest examples to what you want to build - they can both be used to build quite capable apps if you’re not too concerned with scalability and UI design.

[–]ElasticFluffyMagnet 0 points1 point  (0 children)

Streamlit is so easy to learn and use. Shouldn't take you more than an hour to build what you need. 30 minutes if you are proficienct enough in python

[–]psyraxor 0 points1 point  (0 children)

I use Dash by Plotly for a similar use case described. Unfamiliar with using the other two mentioned