Bhaskar Ram commited on
Commit
a111a5b
·
1 Parent(s): 3151380

fix: Gradio 6.0 compatibility — move css to launch(), remove Chatbot type arg

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -270,7 +270,7 @@ footer { display: none !important; }
270
  # UI
271
  # ─────────────────────────────────────────────────────────────────────────────
272
 
273
- with gr.Blocks(title="Kerdos AI — Custom LLM Chat | Document Q&A Demo", css=CSS) as demo:
274
 
275
  # ── Kerdos Header ────────────────────────────────────────────────────────
276
  gr.HTML("""
@@ -369,7 +369,7 @@ with gr.Blocks(title="Kerdos AI — Custom LLM Chat | Document Q&A Demo", css=CS
369
  # ── Right panel: Chat ─────────────────────────────────────────────────
370
  with gr.Column(scale=2):
371
  gr.Markdown("### 💬 Ask Questions")
372
- chatbot = gr.Chatbot(height=420, show_label=False, type="messages")
373
 
374
  with gr.Row():
375
  user_input = gr.Textbox(
@@ -457,4 +457,4 @@ with gr.Blocks(title="Kerdos AI — Custom LLM Chat | Document Q&A Demo", css=CS
457
 
458
  if __name__ == "__main__":
459
  demo.queue()
460
- demo.launch(theme=gr.themes.Soft())
 
270
  # UI
271
  # ─────────────────────────────────────────────────────────────────────────────
272
 
273
+ with gr.Blocks(title="Kerdos AI — Custom LLM Chat | Document Q&A Demo") as demo:
274
 
275
  # ── Kerdos Header ────────────────────────────────────────────────────────
276
  gr.HTML("""
 
369
  # ── Right panel: Chat ─────────────────────────────────────────────────
370
  with gr.Column(scale=2):
371
  gr.Markdown("### 💬 Ask Questions")
372
+ chatbot = gr.Chatbot(height=420, show_label=False)
373
 
374
  with gr.Row():
375
  user_input = gr.Textbox(
 
457
 
458
  if __name__ == "__main__":
459
  demo.queue()
460
+ demo.launch(theme=gr.themes.Soft(), css=CSS)