Spaces:
Sleeping
Sleeping
Update run.py
Browse files
run.py
CHANGED
@@ -1,12 +1,10 @@
|
|
1 |
import time
|
2 |
import gradio as gr
|
3 |
|
4 |
-
def
|
5 |
-
|
6 |
-
time.sleep(0.05)
|
7 |
-
yield "You typed: " + message[: i+1]
|
8 |
|
9 |
-
demo = gr.ChatInterface(
|
10 |
|
11 |
if __name__ == "__main__":
|
12 |
demo.launch()
|
|
|
1 |
import time
|
2 |
import gradio as gr
|
3 |
|
4 |
+
def echo(message, history):
|
5 |
+
return f"Echo {message}"
|
|
|
|
|
6 |
|
7 |
+
demo = gr.ChatInterface(echo)
|
8 |
|
9 |
if __name__ == "__main__":
|
10 |
demo.launch()
|