Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,12 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
-
gr.
|
|
|
1 |
import gradio as gr
|
2 |
+
import time
|
3 |
+
import gradio as gr
|
4 |
+
|
5 |
+
gr.load("models/ljvmiranda921/tl_calamancy_lg").launch(share=True)
|
6 |
+
|
7 |
+
def slow_echo(message, history):
|
8 |
+
for i in range(len(message)):
|
9 |
+
time.sleep(0.05)
|
10 |
+
yield "You typed: " + message[: i+1]
|
11 |
|
12 |
+
demo = gr.ChatInterface(slow_echo).queue()
|