datasaur-dev commited on
Commit
2977ec4
·
verified ·
1 Parent(s): 61c03a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 ✓", "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
 
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