zerogpudevmode / app.py
levena's picture
fix: typo
712a732
raw
history blame
390 Bytes
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()