demo_gpt2 / mockup.py
CedricZ's picture
Upload 4 files
5ba1135 verified
raw
history blame
223 Bytes
import gradio as gr
def greet(prompt, temperature, max_lenth, top_p):
return "Hello, world!"
demo = gr.Interface(
fn=greet,
inputs=["text", "slider", "slider", "slider"],
outputs=["text"],
)
demo.launch()