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", 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)
|
|
|
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, on_change=update_showing)
|
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)
|