stevhliu's picture
stevhliu HF staff
Update app.py
ea8eb6d verified
raw
history blame
170 Bytes
from transformers import pipeline
import gradio as gr
pipeline = pipeline("text-generation", model="openai-community/gpt2")
gr.Interface.from_pipeline(pipeline).launch()