also launch from launch.py

This commit is contained in:
lllyasviel 2023-11-06 00:01:04 -08:00
parent 2165114876
commit 933da40735
4 changed files with 13 additions and 16 deletions

View File

@ -1 +1 @@
version = '2.1.779'
version = '2.1.780'

View File

@ -1,6 +1,16 @@
from python_hijack import *
import os
import sys
root = os.path.dirname(os.path.abspath(__file__))
sys.path.append(root)
os.chdir(root)
backend_path = os.path.join(root, 'backend', 'headless')
if backend_path not in sys.path:
sys.path.append(backend_path)
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"
import platform
import fooocus_version

View File

@ -1,11 +0,0 @@
import os
import sys
root = os.path.dirname(os.path.abspath(__file__))
sys.path.append(root)
os.chdir(root)
backend_path = os.path.join(root, 'backend', 'headless')
if backend_path not in sys.path:
sys.path.append(backend_path)
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"

View File

@ -1,5 +1,3 @@
from python_hijack import *
import gradio as gr
import random
import os