multimodalart HF Staff commited on
Commit
b861a35
·
verified ·
1 Parent(s): 0d2292c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -459,9 +459,9 @@ def create_chatbot_demo():
459
  output_vis = gr.HighlightedText(
460
  label="Denoising Process Visualization",
461
  combine_adjacent=False, # Keep tokens separate
462
- show_legend=False, # Hide default legend table
463
- color_map=color_map, # Provide the color map
464
- elem_classes="token-hl" # Add class for token styling
465
  )
466
  # Use Markdown to display the custom legend
467
  gr.Markdown(legend_html)
 
459
  output_vis = gr.HighlightedText(
460
  label="Denoising Process Visualization",
461
  combine_adjacent=False, # Keep tokens separate
462
+ show_legend=True, # Hide default legend table
463
+ #color_map=color_map, # Provide the color map
464
+ #elem_classes="token-hl" # Add class for token styling
465
  )
466
  # Use Markdown to display the custom legend
467
  gr.Markdown(legend_html)