mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
i (#42)
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
|||||||
version = '1.0.22'
|
version = '1.0.23'
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ def worker():
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
import shared
|
||||||
import random
|
import random
|
||||||
import modules.default_pipeline as pipeline
|
import modules.default_pipeline as pipeline
|
||||||
import modules.path
|
import modules.path
|
||||||
@@ -18,6 +19,12 @@ def worker():
|
|||||||
from modules.sdxl_styles import apply_style, aspect_ratios
|
from modules.sdxl_styles import apply_style, aspect_ratios
|
||||||
from modules.util import generate_temp_filename
|
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):
|
def handler(task):
|
||||||
prompt, negative_prompt, style_selction, performance_selction, \
|
prompt, negative_prompt, style_selction, performance_selction, \
|
||||||
aspect_ratios_selction, image_number, image_seed, base_model_name, refiner_model_name, \
|
aspect_ratios_selction, image_number, image_seed, base_model_name, refiner_model_name, \
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
### 1.0.23
|
||||||
|
|
||||||
|
* Added some hints on linux after UI start so users know the App does not fail.
|
||||||
|
|
||||||
### 1.0.20
|
### 1.0.20
|
||||||
|
|
||||||
* Support linux.
|
* Support linux.
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import gradio as gr
|
import gradio as gr
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
import shared
|
||||||
import modules.path
|
import modules.path
|
||||||
import fooocus_version
|
import fooocus_version
|
||||||
import modules.html
|
import modules.html
|
||||||
@@ -37,8 +38,8 @@ def generate_clicked(*args):
|
|||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
block = gr.Blocks(title='Fooocus ' + fooocus_version.version, css=modules.html.css).queue()
|
shared.gradio_root = gr.Blocks(title='Fooocus ' + fooocus_version.version, css=modules.html.css).queue()
|
||||||
with block:
|
with shared.gradio_root:
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
with gr.Column():
|
with gr.Column():
|
||||||
progress_window = gr.Image(label='Preview', show_label=True, height=640, visible=False)
|
progress_window = gr.Image(label='Preview', show_label=True, height=640, visible=False)
|
||||||
@@ -93,4 +94,4 @@ with block:
|
|||||||
ctrls += [base_model, refiner_model] + lora_ctrls
|
ctrls += [base_model, refiner_model] + lora_ctrls
|
||||||
run_button.click(fn=generate_clicked, inputs=ctrls, outputs=[run_button, progress_html, progress_window, gallery])
|
run_button.click(fn=generate_clicked, inputs=ctrls, outputs=[run_button, progress_html, progress_window, gallery])
|
||||||
|
|
||||||
block.launch(inbrowser=True, server_name='0.0.0.0' if '--listen' in sys.argv else None)
|
shared.gradio_root.launch(inbrowser=True, server_name='0.0.0.0' if '--listen' in sys.argv else None)
|
||||||
|
|||||||
Reference in New Issue
Block a user