Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,11 @@ import os
|
|
6 |
from threading import RLock
|
7 |
from datetime import datetime
|
8 |
|
|
|
|
|
|
|
|
|
|
|
9 |
lock = RLock()
|
10 |
HF_TOKEN = os.environ.get("HF_TOKEN") if os.environ.get("HF_TOKEN") else None # If private or gated models aren't used, ENV setting is unnecessary.
|
11 |
|
@@ -138,8 +143,10 @@ with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=CSS) as demo:
|
|
138 |
with gr.Tab('6 Models'):
|
139 |
with gr.Column(scale=2):
|
140 |
with gr.Group():
|
141 |
-
|
142 |
-
|
|
|
|
|
143 |
with gr.Accordion("Advanced", open=False, visible=True):
|
144 |
with gr.Row():
|
145 |
width = gr.Slider(label="Width", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
|
@@ -188,8 +195,10 @@ with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=CSS) as demo:
|
|
188 |
with gr.Column(scale=2):
|
189 |
model_choice2 = gr.Dropdown(models, label='Choose model', value=models[0])
|
190 |
with gr.Group():
|
191 |
-
|
192 |
-
|
|
|
|
|
193 |
with gr.Accordion("Advanced", open=False, visible=True):
|
194 |
with gr.Row():
|
195 |
width2 = gr.Slider(label="Width", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
|
|
|
6 |
from threading import RLock
|
7 |
from datetime import datetime
|
8 |
|
9 |
+
a cute tall slender athletic young nude caucasian woman. cinematic. explicit. f1.4
|
10 |
+
|
11 |
+
preSetPrompt = "a cute tall slender athletic young nude caucasian woman. gorgeous face. relaxed smile. perfect boobs. outie pussy. pussy juice. artistic. photorealistic. cinematic. explicit. f1.4"
|
12 |
+
negPreSetPrompt = "[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry, text, fuzziness"
|
13 |
+
|
14 |
lock = RLock()
|
15 |
HF_TOKEN = os.environ.get("HF_TOKEN") if os.environ.get("HF_TOKEN") else None # If private or gated models aren't used, ENV setting is unnecessary.
|
16 |
|
|
|
143 |
with gr.Tab('6 Models'):
|
144 |
with gr.Column(scale=2):
|
145 |
with gr.Group():
|
146 |
+
global preSetPrompt
|
147 |
+
global negPreSetPrompt
|
148 |
+
txt_input = gr.Textbox(label='Your prompt:', value=preSetPrompt, lines=2, autofocus=1)
|
149 |
+
neg_input = gr.Textbox(label='Negative prompt:', value=negPreSetPrompt, lines=1)
|
150 |
with gr.Accordion("Advanced", open=False, visible=True):
|
151 |
with gr.Row():
|
152 |
width = gr.Slider(label="Width", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
|
|
|
195 |
with gr.Column(scale=2):
|
196 |
model_choice2 = gr.Dropdown(models, label='Choose model', value=models[0])
|
197 |
with gr.Group():
|
198 |
+
global preSetPrompt
|
199 |
+
global negPreSetPrompt
|
200 |
+
txt_input2 = gr.Textbox(label='Your prompt:', value = preSetPrompt, lines=1, autofocus=1)
|
201 |
+
neg_input2 = gr.Textbox(label='Negative prompt:', value=negPreSetPrompt, lines=1)
|
202 |
with gr.Accordion("Advanced", open=False, visible=True):
|
203 |
with gr.Row():
|
204 |
width2 = gr.Slider(label="Width", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
|