mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 09:38:23 +02:00
major requirements refactor
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
+1
-4
@@ -308,10 +308,7 @@ def temp_disable_extensions():
|
||||
modules.shared.opts.data['theme_type'] = 'Modern'
|
||||
modules.shared.opts.data['gradio_theme'] = theme_name[7:]
|
||||
disable_themes.remove('sdnext-modernui')
|
||||
elif theme_name.lower().startswith('gradio'):
|
||||
modules.shared.opts.data['theme_type'] = 'None'
|
||||
modules.shared.opts.data['gradio_theme'] = theme_name
|
||||
elif theme_name.lower().startswith('huggingface'):
|
||||
elif theme_name.lower().startswith('huggingface') or theme_name.lower().startswith('gradio') or theme_name.lower().startswith('none'):
|
||||
modules.shared.opts.data['theme_type'] = 'None'
|
||||
modules.shared.opts.data['gradio_theme'] = theme_name
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user