ganeshkamath89's picture
Adding description and examples attributes
619e8b5 verified
raw
history blame
409 Bytes
import gradio as gr
def greet(name, intensity):
return "Hello, " + name + "!" * intensity
demo = gr.Interface (
fn=greet,
description="Story generation with GPT-2",
examples=[["Adventurer is approached by a mysterious stranger in the tavern for a new quest"]],
inputs=[gr.Textbox(lines=7, label="Story URL")],
outputs=[gr.Textbox(lines=7, label="Story Summary")]
)
demo.launch(share=True)