This commit is contained in:
lllyasviel
2023-08-13 07:10:26 -07:00
committed by GitHub
parent 8543bb5804
commit 2d71dca12c
5 changed files with 18 additions and 4 deletions
+7
View File
@@ -10,6 +10,7 @@ def worker():
import os
import time
import shared
import random
import modules.default_pipeline as pipeline
import modules.path
@@ -18,6 +19,12 @@ def worker():
from modules.sdxl_styles import apply_style, aspect_ratios
from modules.util import generate_temp_filename
try:
async_gradio_app = shared.gradio_root
print(f'''App started successful. Use the app with {str(async_gradio_app.local_url)} or {str(async_gradio_app.server_name)}:{str(async_gradio_app.server_port)}''')
except Exception as e:
print(e)
def handler(task):
prompt, negative_prompt, style_selction, performance_selction, \
aspect_ratios_selction, image_number, image_seed, base_model_name, refiner_model_name, \