Verma / app.py
Darksherma's picture
Update app.py
9005d1b verified
Raw History Blame Contribute Delete
348 Bytes
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()