Spaces:
Sleeping
Sleeping
import gradio as gr | |
def greet(name): | |
return "Hello " + name + "!!" | |
with gr.Blocks() as demo: | |
iface = gr.Interface( | |
fn=greet, | |
inputs="text", | |
outputs="text", | |
title="Title" | |
) | |
gr.Markdown("## Text Examples") | |
gr.Examples( | |
"Text_1" | |
) | |
if __name__ == "__main__": | |
demo.launch() |