File size: 241 Bytes
cc2a765
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
import gradio as gr

def chat(p, qid, uid):
    return ["text", f"我听到你刚说:{p}"]

iface = gr.Interface(fn=chat, 
                     inputs=["text", "text", "text"], 
                     outputs=["text", "text"])
iface.launch()