nostalgebraist commited on
Commit
bb738df
·
1 Parent(s): 3753600
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -79,16 +79,6 @@ def handler(text, ts1, ts2, gs1):
79
 
80
  st.title('nostalgebraist-autoresponder image generation demo')
81
 
82
- st.header('Settings')
83
-
84
- help_ts1 = "How long to run the base model. Larger values make the image more realistic / better. Smaller values are faster."
85
- help_ts2 = "How long to run the upsampling model. Larger values sometimes make the big image crisper and more detailed. Smaller values are faster."
86
- 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
-
88
- ts1 = st.slider('Steps (base)', min_value=5, max_value=500, value=10, help=help_ts1)
89
- ts2 = st.slider('Steps (upsampling)', min_value=5, max_value=500, value=10, help=help_ts2)
90
- gs1 = st.select_slider('Guidance scale (base)', [0.5*i for i in range(9)], value=0., help=help_gs1)
91
-
92
  st.header('Prompt')
93
 
94
  button_dril = st.button('Fill @dril tweet example text')
@@ -105,6 +95,16 @@ else:
105
  text = st.text_area('Enter your text here (or leave blank for a textless image)', max_chars=380, height=230,
106
  value=fill_value)
107
 
 
 
 
 
 
 
 
 
 
 
108
  button_go = st.button('Generate')
109
  button_stop = st.button('Stop')
110
 
 
79
 
80
  st.title('nostalgebraist-autoresponder image generation demo')
81
 
 
 
 
 
 
 
 
 
 
 
82
  st.header('Prompt')
83
 
84
  button_dril = st.button('Fill @dril tweet example text')
 
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
+ st.header('Settings')
99
+
100
+ help_ts1 = "How long to run the base model. Larger values make the image more realistic / better. Smaller values are faster."
101
+ help_ts2 = "How long to run the upsampling model. Larger values sometimes make the big image crisper and more detailed. Smaller values are faster."
102
+ 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."
103
+
104
+ ts1 = st.slider('Steps (base)', min_value=5, max_value=500, value=10, help=help_ts1)
105
+ ts2 = st.slider('Steps (upsampling)', min_value=5, max_value=500, value=10, help=help_ts2)
106
+ gs1 = st.select_slider('Guidance scale (base)', [0.5*i for i in range(9)], value=0., help=help_gs1)
107
+
108
  button_go = st.button('Generate')
109
  button_stop = st.button('Stop')
110