File size: 443 Bytes
115169a
 
82df0a3
115169a
 
2cd8a91
115169a
 
 
 
 
 
 
 
 
 
 
9fa71e3
115169a
4a81f80
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import time
import gradio as gr
from chatbot_multiagent import submitUserMessage

def chat(message:str, history):
    print(message)
    return submitUserMessage(message)


def slow_echo_chat(message, history):
    answer = submitUserMessage(message)
    for i in range(len(answer)):
        time.sleep(0.01)
        yield answer[: i+1]
        
        
# gr.ChatInterface(chat).launch()
interface = gr.ChatInterface(chat)

interface.launch()