Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
baixing
/
hackathon_chatbot_simple
like
12
Build error
App
Files
Files
Community
3
Fetching metadata from the HF Docker repository...
4650366
hackathon_chatbot_simple
/
app.py
Elfe
A very simple chatbot
546ffe4
almost 2 years ago
raw
Copy download link
history
blame
Safe
241 Bytes
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()