File size: 1,256 Bytes
ffc18a3
 
0d23076
 
ffc18a3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77e58aa
4d54058
77e58aa
ffc18a3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0d23076
 
ffc18a3
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
34
35
36
37
38
39
40
41
42
43
44
#build theme

import gradio as gr

def chat1(message,history):
    history = history or []
    message = message.lower()
    if message.startswith("how many"):
        response = ("1 to 10")
    else:
        response = ("whatever man")

    history.append((message, response))
    return history, history

chatbot = gr.Chatbot()
chatbot1 = gr.Chatbot()
chatbot2 = gr.Chatbot()

with gr.Blocks() as demo:
    gr.Markdown("Efficient Fine Tuning - Bert Model for Text Classification")
    #============================ ADD YOUR NAME ON LINE BELOW (LAST PERSON CAN REMOVE THIS COMMENT) ============================#
    gr.Markdown("By: Greylyn | Rahul | <Member 3> | <Member 4>")
    
    with gr.Row():
        with gr.Column():
            inp = gr.Textbox(placeholder="Prompt",label= "Enter Query")
            btn = gr.Button("Run")

        with gr.Row():
            with gr.Column():
                out = gr.Textbox()
            with gr.Column():    
                out1 = gr.Textbox()
            with gr.Column():
                out2 = gr.Textbox()

    btn.click(fn=chat1, inputs=inp, outputs=out)
    btn.click(fn=chat1, inputs=inp, outputs=out1)
    btn.click(fn=chat1, inputs=inp, outputs=out2)

if __name__ == "__main__":
    demo.launch()