Spaces:
Paused
Paused
lllyasviel
commited on
Commit
·
daed9ab
1
Parent(s):
8ba5d98
webui.py
CHANGED
@@ -1,10 +1,18 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
2 |
from modules.default_pipeline import process
|
3 |
|
4 |
|
5 |
def generate_clicked(positive_prompt):
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
|
10 |
block = gr.Blocks().queue()
|
|
|
1 |
import gradio as gr
|
2 |
+
|
3 |
+
from modules.sdxl_styles import apply_style
|
4 |
from modules.default_pipeline import process
|
5 |
|
6 |
|
7 |
def generate_clicked(positive_prompt):
|
8 |
+
|
9 |
+
p, n = apply_style('sai-cinematic', positive_prompt, '')
|
10 |
+
|
11 |
+
print(p)
|
12 |
+
print(n)
|
13 |
+
|
14 |
+
return process(positive_prompt=p,
|
15 |
+
negative_prompt=n)
|
16 |
|
17 |
|
18 |
block = gr.Blocks().queue()
|