Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ HF_TOKEN = os.environ.get("HF_TOKEN") if os.environ.get("HF_TOKEN") else None #
|
|
| 15 |
def get_current_time():
|
| 16 |
now = datetime.now()
|
| 17 |
now2 = now
|
| 18 |
-
current_time = now2.strftime("%
|
| 19 |
# ki = f'{kii} {current_time}'
|
| 20 |
return current_time
|
| 21 |
|
|
@@ -141,8 +141,6 @@ 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):
|
|
@@ -172,7 +170,7 @@ with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=CSS) as demo:
|
|
| 172 |
|
| 173 |
with gr.Column(scale=2):
|
| 174 |
gallery = gr.Gallery(label="Output", show_download_button=True, elem_classes="gallery",
|
| 175 |
-
interactive=False, show_share_button=
|
| 176 |
preview=True, object_fit="cover", columns=2, rows=2)
|
| 177 |
|
| 178 |
for m, o in zip(current_models, output):
|
|
|
|
| 15 |
def get_current_time():
|
| 16 |
now = datetime.now()
|
| 17 |
now2 = now
|
| 18 |
+
current_time = now2.strftime("%y-%m-%d %H:%M:%S")
|
| 19 |
# ki = f'{kii} {current_time}'
|
| 20 |
return current_time
|
| 21 |
|
|
|
|
| 141 |
with gr.Tab('6 Models'):
|
| 142 |
with gr.Column(scale=2):
|
| 143 |
with gr.Group():
|
|
|
|
|
|
|
| 144 |
txt_input = gr.Textbox(label='Your prompt:', value=preSetPrompt, lines=2, autofocus=1)
|
| 145 |
neg_input = gr.Textbox(label='Negative prompt:', value=negPreSetPrompt, lines=1)
|
| 146 |
with gr.Accordion("Advanced", open=False, visible=True):
|
|
|
|
| 170 |
|
| 171 |
with gr.Column(scale=2):
|
| 172 |
gallery = gr.Gallery(label="Output", show_download_button=True, elem_classes="gallery",
|
| 173 |
+
interactive=False, show_share_button=false, container=True, format="png",
|
| 174 |
preview=True, object_fit="cover", columns=2, rows=2)
|
| 175 |
|
| 176 |
for m, o in zip(current_models, output):
|