gpt2 / app.py
mpolanco's picture
Update app.py
64176b1
Raw History Blame Contribute Delete
403 Bytes
import gradio as gr
from gradio import inputs
description = "Shakespeare generation with GPT-2"
interface = gr.Interface.load("huggingface/lewtun/distilgpt2-finetuned-shakespeare",
title = "Shakespeare Generation with GPT-2",
inputs = [
gr.inputs.Textbox(lines=7, label="Story"),
],
description=description,
examples=[["HAMLET: To be or not to be"]]
)
interface.launch(share=True)