Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -107,7 +107,7 @@ def handle_magic_click(current_text, current_button_text):
|
|
107 |
if category_fix == "COMPLIANT":
|
108 |
# COMPLIANT case - no changes to input, green background, lock, add checklist, change button to Reset
|
109 |
return (
|
110 |
-
gr.update(label="Your Text ✓",
|
111 |
current_text, # previous_text_area - store current
|
112 |
gr.update(visible=False), # previous_text_area visibility - hide
|
113 |
gr.update(value=f"**{category_fix}**", visible=True), # category_label - show category in bold
|
|
|
107 |
if category_fix == "COMPLIANT":
|
108 |
# COMPLIANT case - no changes to input, green background, lock, add checklist, change button to Reset
|
109 |
return (
|
110 |
+
gr.update(label="Your Text ✓", value=current_text, elem_classes="success-text", interactive=False), # text_area - keep original, green, lock
|
111 |
current_text, # previous_text_area - store current
|
112 |
gr.update(visible=False), # previous_text_area visibility - hide
|
113 |
gr.update(value=f"**{category_fix}**", visible=True), # category_label - show category in bold
|