Update app.py
Browse files
app.py
CHANGED
@@ -310,11 +310,19 @@ def get_patient_conversation():
|
|
310 |
|
311 |
# --- Gradio App ---
|
312 |
|
313 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
314 |
gr.Markdown("<h2 style='text-align: center;'>Radiologist's Companion</h2>")
|
315 |
default_model = gr.State(model_choices[0])
|
316 |
|
317 |
-
with gr.Row(
|
318 |
# Patient Information
|
319 |
with gr.Column(scale=1):
|
320 |
gr.Markdown("### Patient Information")
|
@@ -332,7 +340,7 @@ with gr.Blocks(css=".gradio-container {height: 100vh; width: 100% !important; ma
|
|
332 |
# Chat
|
333 |
with gr.Column(scale=3):
|
334 |
gr.Markdown("### Chat")
|
335 |
-
chatbot = gr.Chatbot(label="Chat", type="messages", height=
|
336 |
msg = gr.Textbox(label="Your message", placeholder="Enter your chat message...", show_label=False)
|
337 |
with gr.Row():
|
338 |
submit_btn = gr.Button("Submit", variant="primary")
|
|
|
310 |
|
311 |
# --- Gradio App ---
|
312 |
|
313 |
+
css = """
|
314 |
+
.equal-height > .gr-column {
|
315 |
+
height: 100% !important;
|
316 |
+
display: flex;
|
317 |
+
flex-direction: column;
|
318 |
+
}
|
319 |
+
"""
|
320 |
+
|
321 |
+
with gr.Blocks(css=css) as demo:
|
322 |
gr.Markdown("<h2 style='text-align: center;'>Radiologist's Companion</h2>")
|
323 |
default_model = gr.State(model_choices[0])
|
324 |
|
325 |
+
with gr.Row(elem_classes="equal-height"):
|
326 |
# Patient Information
|
327 |
with gr.Column(scale=1):
|
328 |
gr.Markdown("### Patient Information")
|
|
|
340 |
# Chat
|
341 |
with gr.Column(scale=3):
|
342 |
gr.Markdown("### Chat")
|
343 |
+
chatbot = gr.Chatbot(label="Chat", type="messages", height=400)
|
344 |
msg = gr.Textbox(label="Your message", placeholder="Enter your chat message...", show_label=False)
|
345 |
with gr.Row():
|
346 |
submit_btn = gr.Button("Submit", variant="primary")
|