Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -224,16 +224,14 @@ 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 |
)
|
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=True
|
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=True
|
237 |
)
|
238 |
|
239 |
msg_text = gr.Textbox(
|
|
|
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 |
)
|
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 |
)
|
233 |
gr.Markdown(
|
234 |
"<h3 align='center'>To input an example, please select a dataset which the example belongs to or resembles.</h2>",
|
|
|
235 |
)
|
236 |
|
237 |
msg_text = gr.Textbox(
|