Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ default_value = "Jetzt tippen!"
|
|
29 |
#prompts
|
30 |
st.title("Flos gpt-2")
|
31 |
#st.write("The almighty king of text generation, GPT-2 comes in four available sizes, only three of which have been publicly made available. Feared for its fake news generation capabilities, it currently stands as the most syntactically coherent model. A direct successor to the original GPT, it reinforces the already established pre-training/fine-tuning killer duo. From the paper: Language Models are Unsupervised Multitask Learners by Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei and Ilya Sutskever.")
|
32 |
-
sent = st.text_area("Text", key='showing', height = 275)
|
33 |
max_length = st.sidebar.slider("Max Length", min_value = 10, max_value=30)
|
34 |
temperature = st.sidebar.slider("Temperature", value = 1.0, min_value = 0.0, max_value=1.0, step=0.05)
|
35 |
top_k = st.sidebar.slider("Top-k", min_value = 0, max_value=5, value = 0)
|
@@ -58,8 +58,8 @@ for generated_sequence_idx, generated_sequence in enumerate(output_sequences):
|
|
58 |
print(total_sequence)
|
59 |
|
60 |
|
61 |
-
|
62 |
-
st.text_area("Output", generated_sequences[-1], key='gen', height=275, on_change=update_showing)
|
63 |
|
64 |
#st.session_state.catch_rand = generated_sequences[-1]
|
65 |
#st.write(st.session_state.catch_rand)
|
|
|
29 |
#prompts
|
30 |
st.title("Flos gpt-2")
|
31 |
#st.write("The almighty king of text generation, GPT-2 comes in four available sizes, only three of which have been publicly made available. Feared for its fake news generation capabilities, it currently stands as the most syntactically coherent model. A direct successor to the original GPT, it reinforces the already established pre-training/fine-tuning killer duo. From the paper: Language Models are Unsupervised Multitask Learners by Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei and Ilya Sutskever.")
|
32 |
+
sent = st.text_area("Text", default_value, key='showing', height = 275)
|
33 |
max_length = st.sidebar.slider("Max Length", min_value = 10, max_value=30)
|
34 |
temperature = st.sidebar.slider("Temperature", value = 1.0, min_value = 0.0, max_value=1.0, step=0.05)
|
35 |
top_k = st.sidebar.slider("Top-k", min_value = 0, max_value=5, value = 0)
|
|
|
58 |
print(total_sequence)
|
59 |
|
60 |
|
61 |
+
st.write(generated_sequences[-1]
|
62 |
+
#st.text_area("Output", generated_sequences[-1], key='gen', height=275, on_change=update_showing)
|
63 |
|
64 |
#st.session_state.catch_rand = generated_sequences[-1]
|
65 |
#st.write(st.session_state.catch_rand)
|