ura23 commited on
Commit
6b90e7b
·
verified ·
1 Parent(s): 62a3f36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +51 -3
app.py CHANGED
@@ -1,3 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import argparse
2
  import os
3
 
@@ -177,7 +222,9 @@ def main():
177
  "blank_censor",
178
  "blur_censor",
179
  "light_censor",
180
- "mosaic_censoring"]
 
 
181
 
182
  with gr.Blocks(title=TITLE) as demo:
183
  gr.Markdown(f"<h1 style='text-align: center;'>{TITLE}</h1>")
@@ -209,8 +256,9 @@ def main():
209
  lines=5
210
  )
211
  custom_tags = gr.Textbox(
 
212
  label="Custom Tags (comma-separated)",
213
- placeholder="Enter custom tags to ensure they are in the output (e.g., shy, happy)",
214
  lines=3
215
  )
216
  submit = gr.Button(
@@ -270,4 +318,4 @@ def main():
270
  demo.launch()
271
 
272
  if __name__ == "__main__":
273
- main()
 
1
+ Hugging Face's logo
2
+ Hugging Face
3
+ Models
4
+ Datasets
5
+ Spaces
6
+ Posts
7
+ Docs
8
+ Enterprise
9
+ Pricing
10
+
11
+
12
+
13
+ Spaces:
14
+
15
+
16
+ ura23
17
+ /
18
+ wd-tagger
19
+
20
+ private
21
+
22
+ App
23
+ Files
24
+ Community
25
+ 2
26
+ Settings
27
+ wd-tagger
28
+ /
29
+ app.py
30
+
31
+ ura23's picture
32
+ ura23
33
+ Update app.py
34
+ 62a3f36
35
+ VERIFIED
36
+ less than a minute ago
37
+ raw
38
+
39
+ Copy download link
40
+ history
41
+ blame
42
+ edit
43
+ delete
44
+
45
+ 10.8 kB
46
  import argparse
47
  import os
48
 
 
222
  "blank_censor",
223
  "blur_censor",
224
  "light_censor",
225
+ "mosaic_censoring"],
226
+
227
+ predefined_tags2 = ["loli", "small breasts":"guguguguggugugug"]
228
 
229
  with gr.Blocks(title=TITLE) as demo:
230
  gr.Markdown(f"<h1 style='text-align: center;'>{TITLE}</h1>")
 
256
  lines=5
257
  )
258
  custom_tags = gr.Textbox(
259
+ value=", ".join(predefined_tags2),
260
  label="Custom Tags (comma-separated)",
261
+ placeholder="Enter custom tags to ensure they are in the output (e.g., shy, happy:sad)",
262
  lines=3
263
  )
264
  submit = gr.Button(
 
318
  demo.launch()
319
 
320
  if __name__ == "__main__":
321
+ main()