Ganesh Chintalapati commited on
Commit
d0652c3
·
1 Parent(s): a6a8363
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -409,11 +409,12 @@ def clear_history():
409
  return [], [], []
410
 
411
  # Define Gradio interface
412
- with gr.Blocks(theme=gr.themes.Soft(), css=".full-height { height: 100%; display: flex; align-items: stretch; min-height: 40px; } .full-height button { height: 100%; padding: 8px 16px; }") as demo:
413
  gr.Markdown("# Multi-Model Chat")
414
  gr.Markdown("Chat with OpenAI, Anthropic, or Gemini. Select providers and compare responses side by side!")
415
 
416
- providers = gr.CheckboxGroup(choices=["OpenAI", "Anthropic", "Gemini"], label="Select Providers", value=["OpenAI"])
 
417
 
418
  with gr.Row(elem_classes="full-height"):
419
  query = gr.Textbox(label="Enter your query", placeholder="e.g., What is the capital of the United States?", scale=4)
 
409
  return [], [], []
410
 
411
  # Define Gradio interface
412
+ with gr.Blocks(theme=gr.themes.Soft(), css=".full-height { height: 100%; display: flex; align-items: stretch; min-height: 40px; } .full-height button { height: 100%; padding: 8px 16px; } .providers-row { height: 100%; display: flex; align-items: stretch; min-height: 40px; } .providers-row .checkbox-group { height: 100%; display: flex; align-items: center; }") as demo:
413
  gr.Markdown("# Multi-Model Chat")
414
  gr.Markdown("Chat with OpenAI, Anthropic, or Gemini. Select providers and compare responses side by side!")
415
 
416
+ with gr.Row(elem_classes="providers-row"):
417
+ providers = gr.CheckboxGroup(choices=["OpenAI", "Anthropic", "Gemini"], label="Select Providers", value=["OpenAI"], inline=True, elem_classes="checkbox-group")
418
 
419
  with gr.Row(elem_classes="full-height"):
420
  query = gr.Textbox(label="Enter your query", placeholder="e.g., What is the capital of the United States?", scale=4)