from transformers import pipeline import gradio as gr chat = pipeline("text-generation", model="tiiuae/falcon-1b-instruct") # ~1 GB online def chatfn(msg): output = chat(msg, max_new_tokens=100)[0]["generated_text"] return output.replace(msg, "").strip() gr.ChatInterface(chatfn, title="🧠 DarkVerma MiniGPT", theme="soft").launch()