Update app.py
Browse files
app.py
CHANGED
@@ -157,6 +157,10 @@ if run_button:
|
|
157 |
|
158 |
st.text(f"Seed: {seed}")
|
159 |
|
|
|
|
|
|
|
|
|
160 |
st.subheader("Examples")
|
161 |
for example in examples:
|
162 |
-
st.button(example, key=example, on_click=
|
|
|
157 |
|
158 |
st.text(f"Seed: {seed}")
|
159 |
|
160 |
+
|
161 |
+
def set_prompt(example):
|
162 |
+
prompt.value = example
|
163 |
+
|
164 |
st.subheader("Examples")
|
165 |
for example in examples:
|
166 |
+
st.button(example, key=example, on_click=set_prompt, args=(example,))
|