Spaces:
Runtime error
Runtime error
anonymousauthors
commited on
Commit
β’
97322a9
1
Parent(s):
804eff1
updates
Browse files
pages/2_π_BlackBox_and_WhiteBox_Attacks.py
CHANGED
@@ -260,7 +260,7 @@ if button('Tokenize', key='tokenizer'):
|
|
260 |
st.success(f'We found {restarts} replacements!', icon="β
")
|
261 |
# st.markdown('<br>'.join(outputs), unsafe_allow_html=True)
|
262 |
for i in range(restarts):
|
263 |
-
with st.expander(outputs[i])
|
264 |
st.markdown(f'The response of GPT-2 with the prompt :blue[{outputs[i]}]')
|
265 |
st.markdown('<blockquote>' + generator(outputs[i], max_length=30, num_return_sequences=1)[0]['generated_text'].replace(title, '', 1) + '</blockquote>', unsafe_allow_html=True)
|
266 |
if not platform.system().lower() == 'darwin':
|
|
|
260 |
st.success(f'We found {restarts} replacements!', icon="β
")
|
261 |
# st.markdown('<br>'.join(outputs), unsafe_allow_html=True)
|
262 |
for i in range(restarts):
|
263 |
+
with st.expander(outputs[i]):
|
264 |
st.markdown(f'The response of GPT-2 with the prompt :blue[{outputs[i]}]')
|
265 |
st.markdown('<blockquote>' + generator(outputs[i], max_length=30, num_return_sequences=1)[0]['generated_text'].replace(title, '', 1) + '</blockquote>', unsafe_allow_html=True)
|
266 |
if not platform.system().lower() == 'darwin':
|