Spaces:
Paused
Paused
P01yH3dr0n
commited on
Commit
•
8606c33
1
Parent(s):
40f2d70
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def get_count():
|
|
22 |
return "今日已生成图片" + str(today_count) + "张"
|
23 |
|
24 |
def control_ui():
|
25 |
-
prompt = gr.TextArea(elem_id='txt2img_prompt', label="提示词", lines=3)
|
26 |
quality_tags = gr.TextArea(
|
27 |
elem_id='txt2img_qua_prompt', label="质量词", lines=1,
|
28 |
value=client_config['default_quality'],
|
@@ -157,7 +157,7 @@ def ui():
|
|
157 |
head = ''
|
158 |
for f in sorted(os.listdir('./tagcomplete/javascript')):
|
159 |
head += f'<script type="text/javascript" src="file=tagcomplete/javascript/{f}"></script>\n'
|
160 |
-
with gr.Blocks(title="NAI Client", head=head) as website:
|
161 |
with gr.Tabs():
|
162 |
with gr.TabItem("文生图", elem_id="client_ui_main"):
|
163 |
_, paras = main_ui()
|
|
|
22 |
return "今日已生成图片" + str(today_count) + "张"
|
23 |
|
24 |
def control_ui():
|
25 |
+
prompt = gr.TextArea(value="{breast expansion},{gigantic breasts},[artist:ningen_mame],artist:ciloranko,[artist:sho_(sho_lwlw)],[artist:foifoi (marfoyfoyfoy)],1girl,{1boy},skinny,narrow waist,loli,", elem_id='txt2img_prompt', label="提示词", lines=3)
|
26 |
quality_tags = gr.TextArea(
|
27 |
elem_id='txt2img_qua_prompt', label="质量词", lines=1,
|
28 |
value=client_config['default_quality'],
|
|
|
157 |
head = ''
|
158 |
for f in sorted(os.listdir('./tagcomplete/javascript')):
|
159 |
head += f'<script type="text/javascript" src="file=tagcomplete/javascript/{f}"></script>\n'
|
160 |
+
with gr.Blocks(title="NAI Client", head=head, theme=gr.themes.Base()) as website:
|
161 |
with gr.Tabs():
|
162 |
with gr.TabItem("文生图", elem_id="client_ui_main"):
|
163 |
_, paras = main_ui()
|