Spaces:
Sleeping
Sleeping
import gradio as gd | |
def greeting(name): | |
return "Hello " + name | |
demo = gd.ChatInterface(fn=greeting, | |
inputs='text', | |
textbox=gr.Textbox(placeholder="Type the name to greet:", container=False, scale=7), | |
title="Greeting", | |
outputs='text') | |
demo.launch() |