nostalgebraist commited on
Commit
d922a0c
·
1 Parent(s): 6f24fdd
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -79,14 +79,6 @@ def handler(text, ts1, ts2, gs1):
79
 
80
  st.title('nostalgebraist-autoresponder image generation demo')
81
 
82
- button_dril = st.button('Fill @dril tweet example text')
83
- fill_value = ""
84
- if button_dril:
85
- fill_value = 'wint\nFollowing\n@dril\nthe wise man bowed his head solemnly and\nspoke: "theres actually zero difference\nbetween good & bad things. you imbecile.\nyou fucking moron'
86
-
87
- text = st.text_area('Enter your text here (or leave blank for a textless image)', max_chars=380, height=230,
88
- value=fill_value)
89
-
90
  help_ts1 = "How long to run the base model. Larger values make the image more realistic / better. Smaller values are faster."
91
  help_ts2 = "How long to run the upsampling model. Larger values sometimes make the big image crisper and more detailed. Smaller values are faster."
92
  help_gs1 = "Guidance scale. Larger values make the image more likely to contain the text you wrote. If this is zero, the first part will be faster."
@@ -95,6 +87,13 @@ ts1 = st.slider('Steps (base)', min_value=5, max_value=500, value=10, help=help_
95
  ts2 = st.slider('Steps (upsampling)', min_value=5, max_value=500, value=10, help=help_ts2)
96
  gs1 = st.select_slider('Guidance scale (base)', [0.5*i for i in range(9)], value=0., help=help_gs1)
97
 
 
 
 
 
 
 
 
98
 
99
  button_go = st.button('Generate')
100
  button_stop = st.button('Stop')
 
79
 
80
  st.title('nostalgebraist-autoresponder image generation demo')
81
 
 
 
 
 
 
 
 
 
82
  help_ts1 = "How long to run the base model. Larger values make the image more realistic / better. Smaller values are faster."
83
  help_ts2 = "How long to run the upsampling model. Larger values sometimes make the big image crisper and more detailed. Smaller values are faster."
84
  help_gs1 = "Guidance scale. Larger values make the image more likely to contain the text you wrote. If this is zero, the first part will be faster."
 
87
  ts2 = st.slider('Steps (upsampling)', min_value=5, max_value=500, value=10, help=help_ts2)
88
  gs1 = st.select_slider('Guidance scale (base)', [0.5*i for i in range(9)], value=0., help=help_gs1)
89
 
90
+ button_dril = st.button('Fill @dril tweet example text')
91
+ fill_value = ""
92
+ if button_dril:
93
+ fill_value = 'wint\nFollowing\n@dril\nthe wise man bowed his head solemnly and\nspoke: "theres actually zero difference\nbetween good & bad things. you imbecile.\nyou fucking moron'
94
+
95
+ text = st.text_area('Enter your text here (or leave blank for a textless image)', max_chars=380, height=230,
96
+ value=fill_value)
97
 
98
  button_go = st.button('Generate')
99
  button_stop = st.button('Stop')