File size: 403 Bytes
ac26a06 64176b1 | 1 2 3 4 5 6 7 8 9 10 11 12 | 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) |