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