Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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=
|
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)
|