Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
hysts-debug
/
gradio-ChatInterface-lazy-cache
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
3396ac4
gradio-ChatInterface-lazy-cache
/
app.py
hysts
HF Staff
Add file
3396ac4
6 months ago
raw
Copy download link
history
blame
Safe
213 Bytes
import
gradio
as
gr
def
fn
(
message, history
):
return
message
gr.ChatInterface(
fn=fn,
cache_examples=
True
,
cache_mode=
"lazy"
,
examples=[[
"hey"
], [
"hello"
]],
type
=
"messages"
,
).launch()