anonymousauthors commited on
Commit
d28cf92
β€’
1 Parent(s): bc20b12
pages/2_😈_BlackBox_and_WhiteBox_Attacks.py CHANGED
@@ -224,7 +224,7 @@ if button('Tokenize', key='tokenizer'):
224
  st.markdown('<blockquote>' + generator(title, max_length=30, num_return_sequences=1)[0]['generated_text'].replace(title, '', 1) + '</blockquote>', unsafe_allow_html=True)
225
  if not platform.system().lower() == 'darwin':
226
  st.markdown(f'The response of {model_choice} with the prompt :blue[{title}]')
227
- st.markdown('<blockquote>' + generator1("EleutherAI has", do_sample=True, min_length=50)[0]['generated_text'].replace(title, '', 1) + '</blockquote>', unsafe_allow_html=True)
228
 
229
  st.markdown(f'The response of [Codex](https://openai.com/blog/openai-codex/) with the prompt :blue[{title}]')
230
  st.markdown('<blockquote>' + output_openai + '</blockquote>', unsafe_allow_html=True)
 
224
  st.markdown('<blockquote>' + generator(title, max_length=30, num_return_sequences=1)[0]['generated_text'].replace(title, '', 1) + '</blockquote>', unsafe_allow_html=True)
225
  if not platform.system().lower() == 'darwin':
226
  st.markdown(f'The response of {model_choice} with the prompt :blue[{title}]')
227
+ st.markdown('<blockquote>' + generator1(title, do_sample=True, min_length=50)[0]['generated_text'].replace(title, '', 1) + '</blockquote>', unsafe_allow_html=True)
228
 
229
  st.markdown(f'The response of [Codex](https://openai.com/blog/openai-codex/) with the prompt :blue[{title}]')
230
  st.markdown('<blockquote>' + output_openai + '</blockquote>', unsafe_allow_html=True)