Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -39,6 +39,26 @@ def attack_fn(text, replace_chars, percentage, replace_spaces):
|
|
39 |
return text
|
40 |
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
gr.Interface(
|
43 |
fn=attack_fn,
|
44 |
inputs=inputs,
|
@@ -46,6 +66,7 @@ gr.Interface(
|
|
46 |
title=title,
|
47 |
description=description,
|
48 |
allow_flagging="never",
|
|
|
49 |
examples=[
|
50 |
[EXAMPLE_TEXT_1, False, 0.05, True],
|
51 |
[EXAMPLE_TEXT_1, True, 0.05, False],
|
|
|
39 |
return text
|
40 |
|
41 |
|
42 |
+
theme = gr.themes.Soft(
|
43 |
+
primary_hue="fuchsia",
|
44 |
+
secondary_hue="cyan",
|
45 |
+
neutral_hue="gray",
|
46 |
+
radius_size="none",
|
47 |
+
font=[
|
48 |
+
gr.themes.GoogleFont("IBM Plex Sans"),
|
49 |
+
"ui-sans-serif",
|
50 |
+
"system-ui",
|
51 |
+
"sans-serif",
|
52 |
+
],
|
53 |
+
font_mono=[
|
54 |
+
gr.themes.GoogleFont("IBM Plex Mono"),
|
55 |
+
"ui-monospace",
|
56 |
+
"Consolas",
|
57 |
+
"monospace",
|
58 |
+
],
|
59 |
+
)
|
60 |
+
|
61 |
+
|
62 |
gr.Interface(
|
63 |
fn=attack_fn,
|
64 |
inputs=inputs,
|
|
|
66 |
title=title,
|
67 |
description=description,
|
68 |
allow_flagging="never",
|
69 |
+
theme=theme,
|
70 |
examples=[
|
71 |
[EXAMPLE_TEXT_1, False, 0.05, True],
|
72 |
[EXAMPLE_TEXT_1, True, 0.05, False],
|