zerogpudevmode / app.py
levena's picture
feat: update
6be107b
raw
history blame
343 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:
gr.Interface(fn=greet, inputs=["text","slider"], outputs="text")
gr.ChatInterface(chatinterface_fn).launch()
demo.launch()