prithivMLmods commited on
Commit
ff89480
·
verified ·
1 Parent(s): 8a9aab3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -344,7 +344,11 @@ with gr.Blocks(css=css, fill_width=True, title="Multimodal OCR2") as demo:
344
  gr.Markdown("## Multimodal OCR2")
345
  chatbot = pro.Chatbot(
346
  height="calc(100vh - 200px)",
347
- welcome_config=pro.Chatbot.WelcomeConfig(prompts=welcome_prompts, title="Start by selecting an example:")
 
 
 
 
348
  )
349
  with pro.MultimodalInput(placeholder="Ask a question about your image or video...") as input_comp:
350
  with ms.Slot("prefix"):
 
344
  gr.Markdown("## Multimodal OCR2")
345
  chatbot = pro.Chatbot(
346
  height="calc(100vh - 200px)",
347
+ # FIX: Changed pro.Chatbot.WelcomeConfig to a dictionary
348
+ welcome_config={
349
+ "prompts": welcome_prompts,
350
+ "title": "Start by selecting an example:"
351
+ }
352
  )
353
  with pro.MultimodalInput(placeholder="Ask a question about your image or video...") as input_comp:
354
  with ms.Slot("prefix"):