Spaces:
Runtime error
Runtime error
import time | |
import gradio as gr | |
def slow_echo(message, history): | |
for i in range(len(message)): | |
time.sleep(0.3) | |
yield "You typed: " + message[: i + 1] | |
gr.ChatInterface( | |
slow_echo, | |
# chatbot=gr.Chatbot(height=200), | |
# textbox=gr.Textbox(placeholder="Ask me a yes or no question"), | |
description="Ask Yes Man any question", | |
theme="soft", | |
css="", | |
examples=["Hello", "Am I cool?", "Are tomatoes vegetables?"], | |
cache_examples=True, | |
clear_btn="Clear", | |
).queue().launch() | |