Spaces:
Running
Running
charliebaby2023
commited on
Commit
•
132d5bb
1
Parent(s):
84ab6b6
Update app.py
Browse files
app.py
CHANGED
@@ -43,19 +43,20 @@ def gen_fn(model_str, prompt):
|
|
43 |
return models_load[model_str](f'{prompt} {noise}')
|
44 |
|
45 |
def make_me():
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
|
|
59 |
with gr.Row():
|
60 |
output = [gr.Image(label=m, min_width=250) for m in default_models]
|
61 |
current_models = [gr.Textbox(m, visible=True) for m in default_models]
|
|
|
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(label='Your prompt:', lines=2, value=kii)
|
49 |
+
gen_button = gr.Button('Generate images ')
|
50 |
+
stop_button = gr.Button('Stop', variant='secondary', interactive=False)
|
51 |
+
gen_button.click(lambda s: gr.update(interactive=True), None, stop_button)
|
52 |
+
#gr.HTML("""
|
53 |
+
# <div style="text-align: center; max-width: 100%; margin: 0 auto;">
|
54 |
+
# <!--div>
|
55 |
+
# <body>
|
56 |
+
# </body>
|
57 |
+
# </div-->
|
58 |
+
# </div>
|
59 |
+
#""")
|
60 |
with gr.Row():
|
61 |
output = [gr.Image(label=m, min_width=250) for m in default_models]
|
62 |
current_models = [gr.Textbox(m, visible=True) for m in default_models]
|