zerogpudevmode / app.py
0num4
feat: 普通に壊れてた
1522a25
raw
history blame
397 Bytes
import gradio as gr # type: ignore
def greet(name, sliderint):
return "Hellonyaaaaa " + 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)
demo.launch()