gradio-pr-bot's picture
Upload folder using huggingface_hub
db0d36e verified
raw
history blame contribute delete
264 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).queue()
if __name__ == "__main__":
demo.launch()