anonymousauthors commited on
Commit
97322a9
β€’
1 Parent(s): 804eff1
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':