Spaces:
Build error
Build error
import gradio as gr | |
from transformers import pipeline | |
generator = pipeline("text-generation", model = "distilgpt2") | |
prompt = "This tutorial is about" | |
generator(prompt, max_length = 30) | |
iface = gr.Interface(fn=generate_text, inputs="text", outputs="text") | |
iface.launch() |