Showing posts with label Web. Show all posts
Showing posts with label Web. Show all posts
Tuesday, April 15, 2025
Dashboard with Gradio Python
This video showcases the Sparrow dashboard, where you can view statistics on document data extraction events processed by Sparrow. This elegant dashboard is built with Python using Gradio, a server-side web UI framework.
Monday, March 17, 2025
Temporary Files Cleaner for Gradio Web App
Learn how to implement an automatic temporary file cleanup solution for Gradio web applications. This tutorial shows you how to prevent disk space issues by periodically removing old upload files and folders that Gradio leaves behind. Perfect for developers who deploy Gradio apps in production environments or run memory-intensive applications.
Monday, February 20, 2023
Streamlit Button Group UI (Flowbite) Component
Streamlit doesn't provide an option to display multiple buttons side-by-side horizontally. I explain how to achieve this functionality using a custom Streamlit component and Flowbite button group UI.
Monday, December 19, 2022
File Upload/Download in Streamlit/Python
File upload/download is supported by Streamlit out of the box. There are a few hints to share about more effective file upload implementation. You will learn how to wrap the file upload widget with Streamlit form, use Submit button to confirm the upload and reinitialize the upload widget. Additionally, I will show you an example of how to download JSON file from the server with Streamlit download component.
Monday, December 12, 2022
Dependent UI Widgets in Streamlit/Python
This video explains how to implement dependent UI widgets refresh in Streamlit/Python, when the value changes. I'm using Streamlit Empty widget as a placeholder to update selectbox with a new entry, after the new file upload. Selectbox displays the list of uploaded files.
Monday, November 28, 2022
Responsive UI with Streamlit/Python
I explain how to get current UI width info in Streamlit and use this value to calculate number of columns to be generated for the form block. Streamlit is server side UI framework and it runs on Python.
Sunday, October 30, 2022
Understanding Streamlit/Python Application Flow
Streamlit re-executes Python script, each time when the request is sent to the server. You should keep this in mind when building Streamlit apps. There are scenarios when you want to make sure code is not executed on subsequent call. You can control this with Streamlit session object.
Sunday, October 23, 2022
Streamlit/Python Handling Fast Data Entry
I explain how to enable fast data entry in Streamlit with form component. By default, Streamlit input components execute server call on data change. When wrapped by form component, changes are sent to the server in batch, when Save button is pressed.
Sunday, October 9, 2022
Streamlit Python App Setup
I explain my experience setting up the new Streamlit app for development. I share several best practices and hints on how to make application code readable and maintainable. I talk about the development process with Streamlit and why it is a good choice to build UI for new products.
Monday, August 15, 2022
Dynamic UI in Django with Alpine.js
Django generates static HTML UI, this requires a full request submit to the server. But you can build dynamic UI's, by including and using Alpine.js library. With Alpine.js you can open dialogs, hide content or disable UI controls. This helps to improve Django app UI usability.
Sunday, June 26, 2022
MLUI: Django HTML Template Tags
Django HTML template tags help to implement dynamic logic, processed on the server-side and rendered through HTML response on the client. This helps to integrate HTML structure with Django backend. In this video I explain how to use Django built-in tags in HTML.
Sunday, June 12, 2022
MLUI: Django HTML Templates
I explain how to create a Web page in Django using HTML templates and add URL routing to Django view.
Sunday, May 22, 2022
File Upload with PyScript
I explain how to implement file upload functionality with PyScript in the browser. File content is converted to Pandas and displayed in the table. All UI components are native Python. I show how to interact with HTML DOM structure from PyScript.
Monday, May 16, 2022
Data Annotation with SVG and JavaScript
I explain how to build a simple data annotation tool with SVG and JavaScript in HTML page. The sample code renders two boxes in SVG on top of the receipt image. You will learn how to select and switch between annotation boxes. Enjoy!
Labels:
JavaScript,
Machine Learning,
Web
Monday, May 9, 2022
PyScript - Deep Dive for Developer
PyScript was announced last week at PyCon US 2022. Good news for all Python developers, now we can run Python logic serverless in the browser. This video is deep dive, with a step-by-step explanation of the sample application code. It includes an input component, chart, and table. I explain how to update UI when the input component changes. Hope this will be useful for your practical knowledge.
Monday, May 2, 2022
PyScript - Python in the Browser
Exciting times! On PyCon US 2022 it was announced about PyScript. With PyScript framework, we can run regular Python code directly in the browser, included in py-script tag. This opens lots of new possibilities for serverless Python applications, using the same API and libraries you used to code on the server-side. Think about the browser as VM that runs your code.
Subscribe to:
Posts (Atom)