File size: 439 Bytes
8b0f7f5
 
 
 
 
 
 
 
 
 
189a011
 
8b0f7f5
 
 
 
de86e6d
8b0f7f5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# import gradio as gr

# demo = gr.load("mistralai/Mistral-7B-Instruct-v0.2", 
#                  title="Someone's Chatty",
#         description="What would you like to chat about?",
#                src="models")

# demo.launch()

import time
import gradio as gr

def slow_echo(message, history):
    for i in range(len(message)):
        time.sleep(0.3)
        yield "You typed: " + message[: i+1]

gr.ChatInterface(slow_echo).launch()