Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
|
8 |
-
|
|
|
1 |
+
# import gradio as gr
|
2 |
+
|
3 |
+
# demo = gr.load("mistralai/Mistral-7B-Instruct-v0.2",
|
4 |
+
# title="Someone's Chatty",
|
5 |
+
# description="What would you like to chat about?",
|
6 |
+
# src="models")
|
7 |
+
|
8 |
+
# demo.launch()
|
9 |
+
|
10 |
+
import time
|
11 |
import gradio as gr
|
12 |
|
13 |
+
def slow_echo(message, history):
|
14 |
+
for i in range(len(message)):
|
15 |
+
time.sleep(0.3)
|
16 |
+
yield "You typed: " + message[: i+1]
|
17 |
|
18 |
+
gr.ChatInterface(slow_echo).launch()
|