Spaces:
Runtime error
Runtime error
Commit
·
7f4745d
1
Parent(s):
3dc9e1c
Update app.py
Browse files
app.py
CHANGED
@@ -11,15 +11,15 @@ chatbot = Agent(args)
|
|
11 |
RLHF = []
|
12 |
|
13 |
with gr.Blocks() as demo:
|
14 |
-
|
15 |
with gr.Tab("Chatbot"):
|
16 |
with gr.Row():
|
17 |
with gr.Column():
|
18 |
chatbot_area = gr.Chatbot(
|
19 |
[[None, "Xin chào!"],
|
20 |
-
[None, "Tôi là một công cụ đọc hiểu cho tiếng Việt. Bạn có thể đặt câu hỏi cho tôi
|
21 |
["Công dụng của paracetamol", "hạ sốt, giảm đau"]]
|
22 |
-
).style(height=
|
23 |
msg = gr.Textbox(label='Your prompt')
|
24 |
|
25 |
with gr.Column(scale=0.3, min_width=500):
|
@@ -96,4 +96,4 @@ with gr.Blocks() as demo:
|
|
96 |
clear_chat.click(clear_history, chatbot_area, chatbot_area)
|
97 |
|
98 |
demo.queue()
|
99 |
-
demo.launch()
|
|
|
11 |
RLHF = []
|
12 |
|
13 |
with gr.Blocks() as demo:
|
14 |
+
gr.Markdown( """<h1><center>Vietnamese QA assistant</center></h1>""")
|
15 |
with gr.Tab("Chatbot"):
|
16 |
with gr.Row():
|
17 |
with gr.Column():
|
18 |
chatbot_area = gr.Chatbot(
|
19 |
[[None, "Xin chào!"],
|
20 |
+
[None, "Tôi là một công cụ đọc hiểu cho tiếng Việt. Bạn có thể đặt bất kì câu hỏi cho tôi hoặc bạn có thể upload văn bản của bạn và hỏi tôi về nó ở tab 'Your context'"],
|
21 |
["Công dụng của paracetamol", "hạ sốt, giảm đau"]]
|
22 |
+
).style(height=800)
|
23 |
msg = gr.Textbox(label='Your prompt')
|
24 |
|
25 |
with gr.Column(scale=0.3, min_width=500):
|
|
|
96 |
clear_chat.click(clear_history, chatbot_area, chatbot_area)
|
97 |
|
98 |
demo.queue()
|
99 |
+
demo.launch(server_name='0.0.0.0')
|