anonymous8
commited on
Commit
•
64eed0e
1
Parent(s):
c4e86f5
Update app.py
Browse files
app.py
CHANGED
@@ -224,12 +224,17 @@ if __name__ == "__main__":
|
|
224 |
input_sentence = gr.Textbox(
|
225 |
placeholder="Input a natural example...",
|
226 |
label="Alternatively, input a natural example and its original label (from above datasets) to generate an adversarial example.",
|
|
|
227 |
)
|
228 |
input_label = gr.Textbox(
|
229 |
-
placeholder="Original label, (must be a integer, because we use digits to represent labels in training)",
|
|
|
|
|
230 |
)
|
231 |
gr.Markdown(
|
232 |
-
"<h3 align='center'>To input an example, please select a dataset which the example belongs to or resembles.</h2>"
|
|
|
|
|
233 |
|
234 |
msg_text = gr.Textbox(
|
235 |
label="Message",
|
|
|
224 |
input_sentence = gr.Textbox(
|
225 |
placeholder="Input a natural example...",
|
226 |
label="Alternatively, input a natural example and its original label (from above datasets) to generate an adversarial example.",
|
227 |
+
visible=False
|
228 |
)
|
229 |
input_label = gr.Textbox(
|
230 |
+
placeholder="Original label, (must be a integer, because we use digits to represent labels in training)",
|
231 |
+
label="Original Label",
|
232 |
+
visible=False
|
233 |
)
|
234 |
gr.Markdown(
|
235 |
+
"<h3 align='center'>To input an example, please select a dataset which the example belongs to or resembles.</h2>",
|
236 |
+
visible=False
|
237 |
+
)
|
238 |
|
239 |
msg_text = gr.Textbox(
|
240 |
label="Message",
|