import streamlit as st # Adding the introduction part st.markdown("""

Earlier, we discussed how Machine Learning (ML) and Deep Learning (DL) are two powerful tools in the field of Artificial Intelligence (AI). But how do we better understand their differences? Let’s use an analogy:

""", unsafe_allow_html=True) # Adding the analogy heading st.markdown("

✨ Imagine This: Chefs in the Kitchen

", unsafe_allow_html=True) # Adding the analogy content st.markdown("""

Two chefs are in the same kitchen. One chef is highly skilled and prepares a dish every day, experimenting with different flavors and ingredients. The second chef, who is not very experienced, wants to recreate the dish but hasn’t been as consistent with their practice. To do this, they borrow the first chef's recipe to copy it. To help them recreate the dish, they use two tools: a recipe book and a set of cooking tools. While both tools serve the same purpose of helping them cook, their functionality differs:

ML and DL Analogy:

""", unsafe_allow_html=True) st.markdown("

Key Differences Between ML and DL

", unsafe_allow_html=True) # Centered Image image_url = "https://huggingface.co/spaces/varshitha22/ML/resolve/main/images/im3.jpeg" st.markdown( f"""
ML vs DL Key Differences
""", unsafe_allow_html=True ) # Adding the table comparison content st.markdown("

Machine Learning vs Deep Learning

", unsafe_allow_html=True) markdown_content = """
Features Machine Learning (ML) Deep Learning (DL)
Learning Approach Uses a statistical approach to analyze data and make predictions. Uses neural networks to automatically learn patterns.
Data Requirement Works well with smaller datasets. Requires large amounts of data to perform well.
Feature Engineering Requires manual feature selection and extraction. Automatically learns features from raw data.
Interpretability Easier to interpret and explain model decisions. Harder to interpret due to complex layers in the network.
Computation Power Can run on CPUs (low computational power). Requires GPUs/TPUs (high computational power).
Algorithms Used Uses models like KNN, Decision Trees, Linear Regression. Uses ANN, CNN, RNN for feature extraction and learning.
Training Time Faster training due to simpler computations. Longer training time due to deep layers and complex processing.
Data Types Processed Works with structured/tabular data. Works with images, videos, text, and audio.
""" st.markdown(markdown_content, unsafe_allow_html=True)