Spaces:
Runtime error
Runtime error
anonymousauthors
commited on
Commit
β’
d28cf92
1
Parent(s):
bc20b12
updates
Browse files
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(
|
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)
|