Update app.py
Browse files
app.py
CHANGED
|
@@ -141,8 +141,8 @@ with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=CSS) as demo:
|
|
| 141 |
with gr.Tab('6 Models'):
|
| 142 |
with gr.Column(scale=2):
|
| 143 |
with gr.Group():
|
| 144 |
-
global preSetPrompt
|
| 145 |
-
global negPreSetPrompt
|
| 146 |
txt_input = gr.Textbox(label='Your prompt:', value=preSetPrompt, lines=2, autofocus=1)
|
| 147 |
neg_input = gr.Textbox(label='Negative prompt:', value=negPreSetPrompt, lines=1)
|
| 148 |
with gr.Accordion("Advanced", open=False, visible=True):
|
|
@@ -193,8 +193,8 @@ with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=CSS) as demo:
|
|
| 193 |
with gr.Column(scale=2):
|
| 194 |
model_choice2 = gr.Dropdown(models, label='Choose model', value=models[0])
|
| 195 |
with gr.Group():
|
| 196 |
-
global preSetPrompt
|
| 197 |
-
global negPreSetPrompt
|
| 198 |
txt_input2 = gr.Textbox(label='Your prompt:', value = preSetPrompt, lines=1, autofocus=1)
|
| 199 |
neg_input2 = gr.Textbox(label='Negative prompt:', value=negPreSetPrompt, lines=1)
|
| 200 |
with gr.Accordion("Advanced", open=False, visible=True):
|
|
|
|
| 141 |
with gr.Tab('6 Models'):
|
| 142 |
with gr.Column(scale=2):
|
| 143 |
with gr.Group():
|
| 144 |
+
# global preSetPrompt
|
| 145 |
+
# global negPreSetPrompt
|
| 146 |
txt_input = gr.Textbox(label='Your prompt:', value=preSetPrompt, lines=2, autofocus=1)
|
| 147 |
neg_input = gr.Textbox(label='Negative prompt:', value=negPreSetPrompt, lines=1)
|
| 148 |
with gr.Accordion("Advanced", open=False, visible=True):
|
|
|
|
| 193 |
with gr.Column(scale=2):
|
| 194 |
model_choice2 = gr.Dropdown(models, label='Choose model', value=models[0])
|
| 195 |
with gr.Group():
|
| 196 |
+
# global preSetPrompt
|
| 197 |
+
# global negPreSetPrompt
|
| 198 |
txt_input2 = gr.Textbox(label='Your prompt:', value = preSetPrompt, lines=1, autofocus=1)
|
| 199 |
neg_input2 = gr.Textbox(label='Negative prompt:', value=negPreSetPrompt, lines=1)
|
| 200 |
with gr.Accordion("Advanced", open=False, visible=True):
|