hallisky commited on
Commit
3b8a787
·
1 Parent(s): c3176c9

Warning under button

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -136,9 +136,6 @@ with demo:
136
  label="Input Text",
137
  placeholder="The quick brown fox jumped over the lazy dogs."
138
  )
139
- warning_message = gr.Markdown(
140
- "⚠️ Please enter text before obfuscating.", visible=True
141
- )
142
  gr.Markdown("# 2) Style Element Sliders\n### Adjust the style element sliders to the desired levels to steer the obfuscation.")
143
 
144
  reset_button = gr.Button("Choose slider values automatically (based on input text)")
@@ -185,6 +182,9 @@ with demo:
185
  sliders.append(slider)
186
 
187
  obfuscate_button = gr.Button("Obfuscate Text", interactive=False)
 
 
 
188
 
189
  reset_button.click(fn=reset_sliders, inputs=[], outputs=sliders)
190
  input_text.change(fn=update_obfuscate_button, inputs=input_text, outputs=[obfuscate_button, warning_message])
 
136
  label="Input Text",
137
  placeholder="The quick brown fox jumped over the lazy dogs."
138
  )
 
 
 
139
  gr.Markdown("# 2) Style Element Sliders\n### Adjust the style element sliders to the desired levels to steer the obfuscation.")
140
 
141
  reset_button = gr.Button("Choose slider values automatically (based on input text)")
 
182
  sliders.append(slider)
183
 
184
  obfuscate_button = gr.Button("Obfuscate Text", interactive=False)
185
+ warning_message = gr.Markdown(
186
+ "Please enter text before obfuscating.", visible=True
187
+ )
188
 
189
  reset_button.click(fn=reset_sliders, inputs=[], outputs=sliders)
190
  input_text.change(fn=update_obfuscate_button, inputs=input_text, outputs=[obfuscate_button, warning_message])