from transformers import pipeline import gradio as gr # Apna desired LLM model yahan dalen pipe = pipeline("text-generation", model="EleutherAI/gpt-neo-125M") def generate(text): return pipe(text, max_length=100)[0]['generated_text'] demo = gr.Interface(fn=generate, inputs="text", outputs="text") demo.launch()