Download app.py from hysts-debug/gradio-ChatInterface-lazy-cache: direct link, hf CLI and curl.
- Browser
- Download file 213 Bytes
-
https://huggingface.co/spaces/hysts-debug/gradio-ChatInterface-lazy-cache/resolve/main/app.py
- Command line
-
hf download hf://spaces/hysts-debug/gradio-ChatInterface-lazy-cache/app.py
-
curl -L -o app.py https://huggingface.co/spaces/hysts-debug/gradio-ChatInterface-lazy-cache/resolve/main/app.py
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() | |