Spaces:
Paused
Paused
lllyasviel
commited on
Commit
•
0276c07
1
Parent(s):
c94d570
i (#42)
Browse files- fooocus_version.py +1 -1
- modules/async_worker.py +7 -0
- shared.py +2 -0
- update_log.md +4 -0
- webui.py +4 -3
fooocus_version.py
CHANGED
@@ -1 +1 @@
|
|
1 |
-
version = '1.0.
|
|
|
1 |
+
version = '1.0.23'
|
modules/async_worker.py
CHANGED
@@ -10,6 +10,7 @@ def worker():
|
|
10 |
|
11 |
import os
|
12 |
import time
|
|
|
13 |
import random
|
14 |
import modules.default_pipeline as pipeline
|
15 |
import modules.path
|
@@ -18,6 +19,12 @@ def worker():
|
|
18 |
from modules.sdxl_styles import apply_style, aspect_ratios
|
19 |
from modules.util import generate_temp_filename
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
def handler(task):
|
22 |
prompt, negative_prompt, style_selction, performance_selction, \
|
23 |
aspect_ratios_selction, image_number, image_seed, base_model_name, refiner_model_name, \
|
|
|
10 |
|
11 |
import os
|
12 |
import time
|
13 |
+
import shared
|
14 |
import random
|
15 |
import modules.default_pipeline as pipeline
|
16 |
import modules.path
|
|
|
19 |
from modules.sdxl_styles import apply_style, aspect_ratios
|
20 |
from modules.util import generate_temp_filename
|
21 |
|
22 |
+
try:
|
23 |
+
async_gradio_app = shared.gradio_root
|
24 |
+
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)}''')
|
25 |
+
except Exception as e:
|
26 |
+
print(e)
|
27 |
+
|
28 |
def handler(task):
|
29 |
prompt, negative_prompt, style_selction, performance_selction, \
|
30 |
aspect_ratios_selction, image_number, image_seed, base_model_name, refiner_model_name, \
|
shared.py
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
gradio_root = None
|
2 |
+
|
update_log.md
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
1 |
### 1.0.20
|
2 |
|
3 |
* Support linux.
|
|
|
1 |
+
### 1.0.23
|
2 |
+
|
3 |
+
* Added some hints on linux after UI start so users know the App does not fail.
|
4 |
+
|
5 |
### 1.0.20
|
6 |
|
7 |
* Support linux.
|
webui.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import sys
|
3 |
import time
|
|
|
4 |
import modules.path
|
5 |
import fooocus_version
|
6 |
import modules.html
|
@@ -37,8 +38,8 @@ def generate_clicked(*args):
|
|
37 |
return
|
38 |
|
39 |
|
40 |
-
|
41 |
-
with
|
42 |
with gr.Row():
|
43 |
with gr.Column():
|
44 |
progress_window = gr.Image(label='Preview', show_label=True, height=640, visible=False)
|
@@ -93,4 +94,4 @@ with block:
|
|
93 |
ctrls += [base_model, refiner_model] + lora_ctrls
|
94 |
run_button.click(fn=generate_clicked, inputs=ctrls, outputs=[run_button, progress_html, progress_window, gallery])
|
95 |
|
96 |
-
|
|
|
1 |
import gradio as gr
|
2 |
import sys
|
3 |
import time
|
4 |
+
import shared
|
5 |
import modules.path
|
6 |
import fooocus_version
|
7 |
import modules.html
|
|
|
38 |
return
|
39 |
|
40 |
|
41 |
+
shared.gradio_root = gr.Blocks(title='Fooocus ' + fooocus_version.version, css=modules.html.css).queue()
|
42 |
+
with shared.gradio_root:
|
43 |
with gr.Row():
|
44 |
with gr.Column():
|
45 |
progress_window = gr.Image(label='Preview', show_label=True, height=640, visible=False)
|
|
|
94 |
ctrls += [base_model, refiner_model] + lora_ctrls
|
95 |
run_button.click(fn=generate_clicked, inputs=ctrls, outputs=[run_button, progress_html, progress_window, gallery])
|
96 |
|
97 |
+
shared.gradio_root.launch(inbrowser=True, server_name='0.0.0.0' if '--listen' in sys.argv else None)
|