tombetthauser commited on
Commit
e7d490b
β€’
1 Parent(s): 3708c86

Add dynamic markdown model and beta lists to advanced tab

Browse files
Files changed (1) hide show
  1. app.py +14 -10
app.py CHANGED
@@ -143,6 +143,17 @@ def default_pixel():
143
  def random_seed():
144
  return random.randint(0, 99999999999999) # <-- this is a random gradio limit, the seed range seems to actually be 0-18446744073709551615
145
 
 
 
 
 
 
 
 
 
 
 
 
146
  with gr.Blocks(css=".gradio-container {max-width: 650px}") as dropdown_tab:
147
  gr.Markdown('''
148
  # πŸ§‘β€πŸš€ Advanced Concept Loader
@@ -184,17 +195,10 @@ with gr.Blocks(css=".gradio-container {max-width: 650px}") as dropdown_tab:
184
  * "a landscape in the style of \<ahx-model-10> and \<ahx-model-14> "
185
 
186
  ## Valid Artist Tokens:
187
- * \<ahx-model-3>
188
- * \<ahx-model-4>
189
- * \<ahx-model-6>
190
- * \<ahx-model-7>
191
- * \<ahx-model-9>
192
- * \<ahx-model-10>
193
- * \<ahx-model-11>
194
- * \<ahx-model-12>
195
- * \<ahx-model-13>
196
- * \<ahx-model-14>
197
  ''')
 
 
 
198
 
199
  # -----------------------------------------------------------------------------------------------
200
 
 
143
  def random_seed():
144
  return random.randint(0, 99999999999999) # <-- this is a random gradio limit, the seed range seems to actually be 0-18446744073709551615
145
 
146
+
147
+ # make markdown text for available models...
148
+ markdown_model_tags = [f"<{model}>" for model in model_tags if model != "ahx-model-1" and model != "ahx-model-2"]
149
+ markdown_model_text = "\n".join([markdown_model_tags)
150
+
151
+ # make markdown text for available betas...
152
+ markdown_betas_tags = [f"<{model}>" for model in model_tags if "beta" in model]
153
+ markdown_betas_text = "\n".join([markdown_model_tags)
154
+
155
+
156
+
157
  with gr.Blocks(css=".gradio-container {max-width: 650px}") as dropdown_tab:
158
  gr.Markdown('''
159
  # πŸ§‘β€πŸš€ Advanced Concept Loader
 
195
  * "a landscape in the style of \<ahx-model-10> and \<ahx-model-14> "
196
 
197
  ## Valid Artist Tokens:
 
 
 
 
 
 
 
 
 
 
198
  ''')
199
+ gr.Markdown(markdown_model_text)
200
+ gr.Markdown(markdown_betas_text)
201
+
202
 
203
  # -----------------------------------------------------------------------------------------------
204