Spaces:
Runtime error
Runtime error
Commit ·
0620f47
1
Parent(s): c98c92e
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,11 +11,14 @@ chatbot = Agent(args)
|
|
| 11 |
RLHF = []
|
| 12 |
|
| 13 |
with gr.Blocks() as demo:
|
| 14 |
-
# gr.Markdown("
|
| 15 |
with gr.Tab("Chatbot"):
|
| 16 |
with gr.Row():
|
| 17 |
with gr.Column():
|
| 18 |
-
chatbot_area = gr.Chatbot(
|
|
|
|
|
|
|
|
|
|
| 19 |
msg = gr.Textbox(label='Your prompt')
|
| 20 |
|
| 21 |
with gr.Column(scale=0.3, min_width=500):
|
|
@@ -37,7 +40,7 @@ with gr.Blocks() as demo:
|
|
| 37 |
|
| 38 |
with gr.Tab("Your context"):
|
| 39 |
context_box = gr.Textbox(
|
| 40 |
-
label=
|
| 41 |
lines=20,
|
| 42 |
placeholder="Enter your context here..."
|
| 43 |
)
|
|
|
|
| 11 |
RLHF = []
|
| 12 |
|
| 13 |
with gr.Blocks() as demo:
|
| 14 |
+
# gr.Markdown("Vietnamese Machine Reading Comprehension in healthcare")
|
| 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 về lĩnh vực y tế 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 |
+
).style(height=700)
|
| 22 |
msg = gr.Textbox(label='Your prompt')
|
| 23 |
|
| 24 |
with gr.Column(scale=0.3, min_width=500):
|
|
|
|
| 40 |
|
| 41 |
with gr.Tab("Your context"):
|
| 42 |
context_box = gr.Textbox(
|
| 43 |
+
label="Bạn có thể upload hoặc viết văn bản của bạn vào đây và quay lại tab 'Chatbot' để hỏi tôi!",
|
| 44 |
lines=20,
|
| 45 |
placeholder="Enter your context here..."
|
| 46 |
)
|