File size: 925 Bytes
23f891f
 
 
 
8caebc6
 
 
 
 
 
 
 
23f891f
061706c
 
23f891f
 
 
 
061706c
 
7611cb2
 
23f891f
73d4c8c
b3394e4
 
 
73d4c8c
 
 
 
23f891f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import gradio as gr


with gr.Blocks() as demo:
    overview = gr.Markdown("""
    # CentaurSock
    
    ## Watson Hartsoe and Tony Assi

    Overview: .....
    """)
    
    with gr.Row():
        img1 = gr.Markdown("""![](https://media.vanityfair.com/photos/650095a4a5dad6d330c01de2/4:3/w_1648,h_1236,c_limit/elon-musk-amber-heard.jpg)""")
        img2 = gr.Markdown("""![](https://i.insider.com/63d93b280a08ae0018a62b4f?width=700)""")

    with gr.Row():
        chatbot1 = gr.Chatbot()
        chatbot2 = gr.Chatbot()

    with gr.Row():
        textbox1 = gr.Textbox()
        textbox2 = gr.Textbox()

    def echo(message, chat_history):
        bot_message = 'echo ' + message
        chat_history.append((message, bot_message))
        return '', chat_history

    textbox1.submit(echo, [textbox1, chatbot1], [textbox1, chatbot1])
    textbox2.submit(echo, [textbox2, chatbot2], [textbox2, chatbot2])

demo.launch()