Spaces:
Sleeping
Sleeping
Hellisotherpeople
commited on
Commit
β’
b013fb5
1
Parent(s):
71d0e66
Update Text-Generation.py
Browse files- Text-Generation.py +7 -1
Text-Generation.py
CHANGED
@@ -92,7 +92,13 @@ generate_args = st.text_input('model.generate() arguments (in python dictionary
|
|
92 |
st.caption("For more details on what these settings mean and a complete list of all settings, see here: https://huggingface.co/blog/how-to-generate and https://huggingface.co/docs/transformers/main_classes/text_generation#transformers.GenerationConfig and https://huggingface.co/docs/transformers/v4.29.1/en/main_classes/text_generation#transformers.GenerationMixin.generate")
|
93 |
|
94 |
|
95 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
|
97 |
form.form_submit_button("Generate some Constrained Text!")
|
98 |
|
|
|
92 |
st.caption("For more details on what these settings mean and a complete list of all settings, see here: https://huggingface.co/blog/how-to-generate and https://huggingface.co/docs/transformers/main_classes/text_generation#transformers.GenerationConfig and https://huggingface.co/docs/transformers/v4.29.1/en/main_classes/text_generation#transformers.GenerationMixin.generate")
|
93 |
|
94 |
|
95 |
+
custom_prompt = """
|
96 |
+
### Human: Write about how much you love constrained text generation techniques
|
97 |
+
|
98 |
+
### Assistant:
|
99 |
+
"""
|
100 |
+
|
101 |
+
sequence = st.text_area("Enter a custom prompt", value = custom_prompt)
|
102 |
|
103 |
form.form_submit_button("Generate some Constrained Text!")
|
104 |
|