Ruurd commited on
Commit
2a4d0b6
·
verified ·
1 Parent(s): 13d4b82

Improve mobile view

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -310,11 +310,11 @@ def get_patient_conversation():
310
 
311
  # --- Gradio App ---
312
 
313
- with gr.Blocks(css=".gradio-container {height: 100vh; width: 100vw; overflow: hidden;}") as demo:
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(equal_height=True, wrap=True):
318
  # Patient Information
319
  with gr.Column(scale=1):
320
  gr.Markdown("### Patient Information")
@@ -332,7 +332,7 @@ with gr.Blocks(css=".gradio-container {height: 100vh; width: 100vw; overflow: hi
332
  # Chat
333
  with gr.Column(scale=2):
334
  gr.Markdown("### Chat")
335
- chatbot = gr.Chatbot(label="Chat", type="messages", height=500)
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
+ with gr.Blocks(css=".gradio-container {height: 100vh;}") as demo:
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(equal_height=True):
318
  # Patient Information
319
  with gr.Column(scale=1):
320
  gr.Markdown("### Patient Information")
 
332
  # Chat
333
  with gr.Column(scale=2):
334
  gr.Markdown("### Chat")
335
+ chatbot = gr.Chatbot(label="Chat", type="messages", height="auto")
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")