Elfe commited on
Commit
546ffe4
1 Parent(s): d8efc7e

A very simple chatbot

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def chat(p, qid, uid):
4
+ return ["text", f"我听到你刚说:{p}"]
5
+
6
+ iface = gr.Interface(fn=chat,
7
+ inputs=["text", "text", "text"],
8
+ outputs=["text", "text"])
9
+ iface.launch()