Spaces:
Runtime error
Runtime error
Commit
Β·
453901b
1
Parent(s):
c7fcd76
Added default empty string to dropdowns
Browse files
app.py
CHANGED
@@ -217,14 +217,15 @@ import random
|
|
217 |
#@title Gradio Concept Loader
|
218 |
DROPDOWNS = {}
|
219 |
|
|
|
|
|
|
|
|
|
220 |
for model in model_tags:
|
221 |
if model != "ahx-model-1" and model != "ahx-model-2":
|
222 |
DROPDOWNS[model] = f" in the style of <{model}>"
|
223 |
|
224 |
-
#
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
def default_guidance():
|
229 |
return 7.5
|
230 |
|
|
|
217 |
#@title Gradio Concept Loader
|
218 |
DROPDOWNS = {}
|
219 |
|
220 |
+
# set a default for empty entries...
|
221 |
+
DROPDOWNS[''] = ''
|
222 |
+
|
223 |
+
# populate the dropdowns with full appendable style strings...
|
224 |
for model in model_tags:
|
225 |
if model != "ahx-model-1" and model != "ahx-model-2":
|
226 |
DROPDOWNS[model] = f" in the style of <{model}>"
|
227 |
|
228 |
+
# set pipe param defaults...
|
|
|
|
|
|
|
229 |
def default_guidance():
|
230 |
return 7.5
|
231 |
|