Spaces:
Sleeping
Sleeping
import gradio as gr # type: ignore | |
def greet(name, sliderint): | |
return "Hello " + name + "!!" + str(sliderint) | |
def chatinterface_fn(message,history): | |
return f"{message} return" | |
with gr.Blocks() as demo: | |
name = gr.Textbox(label="name") | |
output= gr.Interface(fn=greet, inputs=["text","slider"], outputs="text") | |
a= gr.ChatInterface(chatinterface_fn).launch() | |
demo.launch() |