DylanonWic's picture
Upload 19 files
2cd8a91 verified
raw
history blame
443 Bytes
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()