Spaces:
Build error
Build error
Download run.py from glossyio/chatinterface_streaming_echo_02: direct link, hf CLI and curl.
- Browser
- Download file 254 Bytes
-
https://huggingface.co/spaces/glossyio/chatinterface_streaming_echo_02/resolve/main/run.py
- Command line
-
hf download hf://spaces/glossyio/chatinterface_streaming_echo_02/run.py
-
curl -L -o run.py https://huggingface.co/spaces/glossyio/chatinterface_streaming_echo_02/resolve/main/run.py
254 Bytes
| import time | |
| import gradio as gr | |
| def slow_echo(message, history): | |
| for i in range(len(message)): | |
| time.sleep(0.05) | |
| yield "You typed: " + message[: i + 1] | |
| demo = gr.ChatInterface(slow_echo) | |
| if __name__ == "__main__": | |
| demo.launch() | |