anisotropies commited on
Commit
8b0f7f5
·
verified ·
1 Parent(s): 09ee478

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -5
app.py CHANGED
@@ -1,8 +1,18 @@
 
 
 
 
 
 
 
 
 
 
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()
 
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()