Duplicated from gradio/chatinterface_streaming_echo_main
38f339f 5bba8b3 38f339f 5bba8b3 38f339f
1
2
3
4
5
6
7
8
9
10
11
import time import gradio as gr def echo(message, history): return f"Echo {message}" demo = gr.ChatInterface(echo) if __name__ == "__main__": demo.launch()