Spaces:
Runtime error
Runtime error
luisrguerra
commited on
Commit
•
6168dbb
1
Parent(s):
fe6028b
Update app.py
Browse files
app.py
CHANGED
@@ -14,6 +14,7 @@ os.system(f"wget -q https://github.com/camenduru/webui/raw/main/env_patch.py -O
|
|
14 |
os.system(f"sed -i -e '/import image_from_url_text/r /home/user/app/env_patch.py' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
15 |
os.system(f"sed -i -e '/(modelmerger_ui.blocks, \"Checkpoint Merger\", \"modelmerger\"),/d' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
16 |
os.system(f"sed -i -e '/(train_interface, \"Train\", \"train\"),/d' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
|
|
17 |
os.system(f"sed -i -e '/extensions_interface, \"Extensions\", \"extensions\"/d' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
18 |
os.system(f"sed -i -e '/settings.interface, \"Settings\", \"settings\"/d' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
19 |
os.system(f'''sed -i -e "s/document.getElementsByTagName('gradio-app')\[0\].shadowRoot/!!document.getElementsByTagName('gradio-app')[0].shadowRoot ? document.getElementsByTagName('gradio-app')[0].shadowRoot : document/g" /home/user/app/stable-diffusion-webui/script.js''')
|
|
|
14 |
os.system(f"sed -i -e '/import image_from_url_text/r /home/user/app/env_patch.py' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
15 |
os.system(f"sed -i -e '/(modelmerger_ui.blocks, \"Checkpoint Merger\", \"modelmerger\"),/d' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
16 |
os.system(f"sed -i -e '/(train_interface, \"Train\", \"train\"),/d' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
17 |
+
# disable extension tab
|
18 |
os.system(f"sed -i -e '/extensions_interface, \"Extensions\", \"extensions\"/d' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
19 |
os.system(f"sed -i -e '/settings.interface, \"Settings\", \"settings\"/d' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
20 |
os.system(f'''sed -i -e "s/document.getElementsByTagName('gradio-app')\[0\].shadowRoot/!!document.getElementsByTagName('gradio-app')[0].shadowRoot ? document.getElementsByTagName('gradio-app')[0].shadowRoot : document/g" /home/user/app/stable-diffusion-webui/script.js''')
|