Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ def get_current_time():
|
|
10 |
now = datetime.now()
|
11 |
now2 = now
|
12 |
current_time = now2.strftime("%Y-%m-%d %H:%M:%S")
|
13 |
-
ki = f'{
|
14 |
return ki
|
15 |
|
16 |
def load_fn(models):
|
@@ -43,10 +43,9 @@ def gen_fn(model_str, prompt):
|
|
43 |
return models_load[model_str](f'{prompt} {noise}')
|
44 |
|
45 |
def make_me():
|
46 |
-
# with gr.Tab('The Dream'):
|
47 |
with gr.Row():
|
48 |
-
#txt_input = gr.Textbox(lines=3, width=600, max_height=100)
|
49 |
txt_input = gr.Textbox(label='Your prompt:', lines=3, width=800, max_height=100)
|
|
|
50 |
|
51 |
gen_button = gr.Button('Generate images', width=30, height=30)
|
52 |
stop_button = gr.Button('Stop', variant='secondary', interactive=False, width=30, height=30)
|
|
|
10 |
now = datetime.now()
|
11 |
now2 = now
|
12 |
current_time = now2.strftime("%Y-%m-%d %H:%M:%S")
|
13 |
+
ki = f'{current_time}'
|
14 |
return ki
|
15 |
|
16 |
def load_fn(models):
|
|
|
43 |
return models_load[model_str](f'{prompt} {noise}')
|
44 |
|
45 |
def make_me():
|
|
|
46 |
with gr.Row():
|
|
|
47 |
txt_input = gr.Textbox(label='Your prompt:', lines=3, width=800, max_height=100)
|
48 |
+
neg_txt_input = gr.Textbox(label='Negative prompt:', lines=3, width=800, max_height=100)
|
49 |
|
50 |
gen_button = gr.Button('Generate images', width=30, height=30)
|
51 |
stop_button = gr.Button('Stop', variant='secondary', interactive=False, width=30, height=30)
|