bugfix: params
Browse files
app.py
CHANGED
@@ -4,6 +4,8 @@ import gradio as gr
|
|
4 |
def slow_echo(message, history):
|
5 |
for i in range(len(message)):
|
6 |
time.sleep(0.3)
|
7 |
-
yield
|
|
|
|
|
8 |
|
9 |
gr.ChatInterface(slow_echo).launch()
|
|
|
4 |
def slow_echo(message, history):
|
5 |
for i in range(len(message)):
|
6 |
time.sleep(0.3)
|
7 |
+
yield message[: i+1]
|
8 |
+
|
9 |
+
|
10 |
|
11 |
gr.ChatInterface(slow_echo).launch()
|