Streamlit st.title displays text in title formatting.The st.title() function in Streamlit displays a large, bold title at the top of your app.It is typically used for headings, titles, or to highlight important sections of your application. Need a Streamlit Developer? Click here Syntax Example Adding Emojis You can include emojis in your title text by using […]
Streamlit Async
Streamlit runs Python scripts top-to-bottom when ever a user interacts with widget.Streamlit is synchronous by default, meaning each function waits for the previous one to finish. The problem arises when we are fetching remote APIs, databases or long computations, synchronous code blocks the UI, making apps slow. This is where asyncio comes in. Need a Streamlit […]
Streamlit Caching
Streamlit runs your script from top to bottom whenever you interact with the app.This execution model makes development super easy. But it comes with two major challenges: 1. Long-running functions run again and again, which slows down your app.2. Objects get recreated again and again, which makes it hard to persist them across reruns or […]
Streamlit Tutorial
Streamlit can help businesses automate a ton of tasks in a short amount of time. It essentially is a quick UI you can throw on top of Python code allowing you to build models and spreadsheet calculations very quickly. In this streamlit course we are going to cover the basics of Streamlit from creating your […]
Gradient boosting classifier
Gradient Boosting is an ensemble technique that builds a strong model by combining multiple weak decision trees. While it may seem similar to a Random Forest, there’s a key difference: in Random Forests, each tree is built independently, whereas in Gradient Boosting, trees are built sequentially, with each new tree correcting the errors of the […]
Reflexion Prompting
This technique is highly effective for chatbots and problem-solving tasks. It also helps reduce hallucinations by incorporating a form of quality control. The process involves: Starting with an initial prompt Getting the AI’s first response Sending a reflexion prompt asking the AI to review and reflect on its first answer Receiving an optimized response, improved […]
Python For Loop
Loops are used to repeat a block of code multiple times. “for” loop in python is used when the number of repetition is known. “while” loop is used when the number of repetition is not known in advance, or can be infinite but there have to be a condition for stopping or exiting out the […]
Python Dictionaries
A Python dictionary is a built in data type used to store key-value pairs. It is similar to a real dictionary where you have to look up a word (key) to find its defintion (value) In Python, a dictionary stores data in linked key-value pairs Each key is connected to a specific value, making it […]
Python sets
A set in Python is a built-in data type used to store unique elements—that is, it automatically removes duplicates. Sets are defined using curly braces {}, and they are unordered and unindexed, meaning the items have no specific position or order. While sets are generally unchangeable in terms of individual items (you can’t change elements […]
Python Lists
https://www.youtube.com/watch?v=nQgN1y_KGLc&list=PLcQVY5V2UY4JlNQqDqmxwXgUy6QGhpgVY&index=3#numbers, booleans, string, list of lists#matrix is a 2d list#part 1 make your first list#list with numbers#list with strings #part 2 grab elements grab multiple elements from listhttps://go.elementor.com/widget-image #every 2nd letter #unpacking #part 4 replace elements #Part 5 Methods #ascending #return index #add to python list #add another list using extend metiod #3rd way to […]