File size: 451 Bytes
e977e57 0e3a074 e977e57 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import gradio as gr
from gradio import inputs
description = "Text generation with a miniature GPT"
interface = gr.Interface.load("huggingface/keras-io/text-generation-miniature-gpt",
title = "Text Generation with a miniature GPT",
inputs = [
gr.inputs.Textbox(lines=2, label="Text"),
],
description=description,
examples=[["Adventurer is approached by a mysterious stranger in the tavern for a new quest."]]
)
interface.launch() |