mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
i (#42)
This commit is contained in:
@@ -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, \
|
||||
|
||||
Reference in New Issue
Block a user