Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,10 +21,10 @@ def infer(input_ids, max_length, temperature, top_k, top_p, num_return_sequences
|
|
21 |
num_return_sequences=num_return_sequences,
|
22 |
)
|
23 |
return output_sequences
|
24 |
-
default_value = "See how a modern neural network auto-completes your text π€ This site, built by the Hugging Face team, lets you write a whole document directly from your browser, and you can trigger the Transformer anywhere using the Tab key. Its like having a smart machine that completes your thoughts π Get started by typing a custom snippet, check out the repository, or try one of the examples. Have fun!"
|
25 |
#prompts
|
26 |
-
st.title("
|
27 |
-
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.")
|
28 |
sent = st.text_area("Text", default_value, height = 275)
|
29 |
max_length = st.sidebar.slider("Max Length", min_value = 10, max_value=30)
|
30 |
temperature = st.sidebar.slider("Temperature", value = 1.0, min_value = 0.0, max_value=1.0, step=0.05)
|
|
|
21 |
num_return_sequences=num_return_sequences,
|
22 |
)
|
23 |
return output_sequences
|
24 |
+
#default_value = "See how a modern neural network auto-completes your text π€ This site, built by the Hugging Face team, lets you write a whole document directly from your browser, and you can trigger the Transformer anywhere using the Tab key. Its like having a smart machine that completes your thoughts π Get started by typing a custom snippet, check out the repository, or try one of the examples. Have fun!"
|
25 |
#prompts
|
26 |
+
st.title("Flos gpt-2")
|
27 |
+
#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.")
|
28 |
sent = st.text_area("Text", default_value, height = 275)
|
29 |
max_length = st.sidebar.slider("Max Length", min_value = 10, max_value=30)
|
30 |
temperature = st.sidebar.slider("Temperature", value = 1.0, min_value = 0.0, max_value=1.0, step=0.05)
|