Sarah Ciston commited on
Commit
f87b990
1 Parent(s): 242f607

rewrite gr.block to match demo

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -33,8 +33,9 @@ def interact_with_agent(prompt, messages):
33
  yield messages
34
 
35
  with gr.Blocks() as demo:
36
- chatbot = gr.ChatMessage(label="Agent",
37
- msg_format="messages")
 
38
  text_input = gr.Textbox(lines=1, label="Chat Message")
39
  text_input.submit(interact_with_agent, [text_input, chatbot], [chatbot])
40
 
 
33
  yield messages
34
 
35
  with gr.Blocks() as demo:
36
+ chatbot = gr.Chatbot(label="Agent",
37
+ msg_format="messages",
38
+ avatar_images=(None, "https://em-content.zobj.net/source/twitter/53/robot-face_1f916.png"))
39
  text_input = gr.Textbox(lines=1, label="Chat Message")
40
  text_input.submit(interact_with_agent, [text_input, chatbot], [chatbot])
41