Spaces:
Sleeping
Sleeping
Update app_gradio.py
Browse files- app_gradio.py +13 -13
app_gradio.py
CHANGED
|
@@ -74,7 +74,7 @@ body, .gradio-container {
|
|
| 74 |
}
|
| 75 |
|
| 76 |
.gradio-container {
|
| 77 |
-
max-width:
|
| 78 |
padding: 24px 28px 28px !important;
|
| 79 |
}
|
| 80 |
|
|
@@ -133,7 +133,7 @@ body, .gradio-container {
|
|
| 133 |
}
|
| 134 |
|
| 135 |
.profile-panel, .visual-panel, .chat-panel {
|
| 136 |
-
min-height:
|
| 137 |
}
|
| 138 |
|
| 139 |
.panel-head {
|
|
@@ -176,7 +176,7 @@ body, .gradio-container {
|
|
| 176 |
.example-box,
|
| 177 |
.visual-note {
|
| 178 |
margin: 18px 24px 0;
|
| 179 |
-
padding:
|
| 180 |
border-radius: 22px;
|
| 181 |
background: rgba(255, 248, 239, 0.08);
|
| 182 |
border: 1px solid rgba(255, 222, 189, 0.12);
|
|
@@ -233,7 +233,7 @@ body, .gradio-container {
|
|
| 233 |
}
|
| 234 |
|
| 235 |
.chatbot-wrap {
|
| 236 |
-
padding: 0
|
| 237 |
}
|
| 238 |
|
| 239 |
.chatbot-wrap .message,
|
|
@@ -258,7 +258,7 @@ body, .gradio-container {
|
|
| 258 |
}
|
| 259 |
|
| 260 |
.input-zone {
|
| 261 |
-
padding: 0
|
| 262 |
}
|
| 263 |
|
| 264 |
.input-zone textarea,
|
|
@@ -279,7 +279,7 @@ body, .gradio-container {
|
|
| 279 |
|
| 280 |
.input-actions .gr-button {
|
| 281 |
width: 100%;
|
| 282 |
-
min-height:
|
| 283 |
}
|
| 284 |
|
| 285 |
.input-zone .gr-button-primary {
|
|
@@ -293,7 +293,7 @@ body, .gradio-container {
|
|
| 293 |
}
|
| 294 |
|
| 295 |
.visual-frame {
|
| 296 |
-
padding:
|
| 297 |
min-height: 100%;
|
| 298 |
display: flex;
|
| 299 |
flex-direction: column;
|
|
@@ -430,9 +430,9 @@ with gr.Blocks(title="Megumin RAG Chat", fill_height=True) as demo:
|
|
| 430 |
gr.HTML(BACKGROUND_HTML)
|
| 431 |
with gr.Column(elem_classes=["shell"]):
|
| 432 |
with gr.Row(elem_classes=["layout"]):
|
| 433 |
-
with gr.Column(scale=
|
| 434 |
gr.HTML(PROFILE_HTML)
|
| 435 |
-
with gr.Column(scale=
|
| 436 |
with gr.Group(elem_classes=["glass-panel", "chat-panel"]):
|
| 437 |
gr.HTML(
|
| 438 |
"""
|
|
@@ -451,7 +451,7 @@ with gr.Blocks(title="Megumin RAG Chat", fill_height=True) as demo:
|
|
| 451 |
)
|
| 452 |
with gr.Column(elem_classes=["chatbot-wrap"]):
|
| 453 |
chatbot = gr.Chatbot(
|
| 454 |
-
height=
|
| 455 |
render_markdown=True,
|
| 456 |
buttons=["copy"],
|
| 457 |
layout="bubble",
|
|
@@ -465,12 +465,12 @@ with gr.Blocks(title="Megumin RAG Chat", fill_height=True) as demo:
|
|
| 465 |
placeholder="메구밍에게 말을 걸어 보세요.",
|
| 466 |
lines=2,
|
| 467 |
max_lines=4,
|
| 468 |
-
scale=
|
| 469 |
)
|
| 470 |
-
with gr.Column(scale=
|
| 471 |
send_button = gr.Button("Send", variant="primary")
|
| 472 |
clear_button = gr.Button("Clear", variant="secondary")
|
| 473 |
-
with gr.Column(scale=4, min_width=
|
| 474 |
gr.HTML(VISUAL_HTML)
|
| 475 |
|
| 476 |
user_input.submit(
|
|
|
|
| 74 |
}
|
| 75 |
|
| 76 |
.gradio-container {
|
| 77 |
+
max-width: 1900px !important;
|
| 78 |
padding: 24px 28px 28px !important;
|
| 79 |
}
|
| 80 |
|
|
|
|
| 133 |
}
|
| 134 |
|
| 135 |
.profile-panel, .visual-panel, .chat-panel {
|
| 136 |
+
min-height: 680px;
|
| 137 |
}
|
| 138 |
|
| 139 |
.panel-head {
|
|
|
|
| 176 |
.example-box,
|
| 177 |
.visual-note {
|
| 178 |
margin: 18px 24px 0;
|
| 179 |
+
padding: 16px 18px 14px;
|
| 180 |
border-radius: 22px;
|
| 181 |
background: rgba(255, 248, 239, 0.08);
|
| 182 |
border: 1px solid rgba(255, 222, 189, 0.12);
|
|
|
|
| 233 |
}
|
| 234 |
|
| 235 |
.chatbot-wrap {
|
| 236 |
+
padding: 0 18px 12px;
|
| 237 |
}
|
| 238 |
|
| 239 |
.chatbot-wrap .message,
|
|
|
|
| 258 |
}
|
| 259 |
|
| 260 |
.input-zone {
|
| 261 |
+
padding: 0 18px 18px;
|
| 262 |
}
|
| 263 |
|
| 264 |
.input-zone textarea,
|
|
|
|
| 279 |
|
| 280 |
.input-actions .gr-button {
|
| 281 |
width: 100%;
|
| 282 |
+
min-height: 48px;
|
| 283 |
}
|
| 284 |
|
| 285 |
.input-zone .gr-button-primary {
|
|
|
|
| 293 |
}
|
| 294 |
|
| 295 |
.visual-frame {
|
| 296 |
+
padding: 24px 22px 16px;
|
| 297 |
min-height: 100%;
|
| 298 |
display: flex;
|
| 299 |
flex-direction: column;
|
|
|
|
| 430 |
gr.HTML(BACKGROUND_HTML)
|
| 431 |
with gr.Column(elem_classes=["shell"]):
|
| 432 |
with gr.Row(elem_classes=["layout"]):
|
| 433 |
+
with gr.Column(scale=4, min_width=400):
|
| 434 |
gr.HTML(PROFILE_HTML)
|
| 435 |
+
with gr.Column(scale=6, min_width=720):
|
| 436 |
with gr.Group(elem_classes=["glass-panel", "chat-panel"]):
|
| 437 |
gr.HTML(
|
| 438 |
"""
|
|
|
|
| 451 |
)
|
| 452 |
with gr.Column(elem_classes=["chatbot-wrap"]):
|
| 453 |
chatbot = gr.Chatbot(
|
| 454 |
+
height=470,
|
| 455 |
render_markdown=True,
|
| 456 |
buttons=["copy"],
|
| 457 |
layout="bubble",
|
|
|
|
| 465 |
placeholder="메구밍에게 말을 걸어 보세요.",
|
| 466 |
lines=2,
|
| 467 |
max_lines=4,
|
| 468 |
+
scale=7,
|
| 469 |
)
|
| 470 |
+
with gr.Column(scale=3, elem_classes=["input-actions"]):
|
| 471 |
send_button = gr.Button("Send", variant="primary")
|
| 472 |
clear_button = gr.Button("Clear", variant="secondary")
|
| 473 |
+
with gr.Column(scale=4, min_width=400):
|
| 474 |
gr.HTML(VISUAL_HTML)
|
| 475 |
|
| 476 |
user_input.submit(
|