Downloads · 30 days
0
Shivam12390/Bharat
Bharat is a machine learning model from Shivam12390. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Downloads · 30 days
0
Access
Public
Updated Nov 12, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 71%
From the Hugging Face model README
import gradio as gr
def chat(message, history=[]): if "namaste" in message.lower(): reply = "Namaste! Main BharatGPT hoon 🇮🇳" elif "tum kaun ho" in message.lower(): reply = "Main Bharat ka AI dost hoon, jo Hindi aur English dono samajhta hai!" elif "kaise ho" in message.lower(): reply = "Main badhiya hoon! Aap batao?" else: reply = "Mujhe samajh nahi aaya 😅, par main seekh raha hoon!" history.append((message, reply)) return history, history
demo = gr.ChatInterface(fn=chat, title="BharatGPT 🇮🇳", theme="soft")
demo.launch()