Update app.py
Browse files
app.py
CHANGED
@@ -63,33 +63,28 @@ with gr.Blocks(css='style.css') as demo:
|
|
63 |
</div>
|
64 |
"""
|
65 |
)
|
66 |
-
|
67 |
-
with gr.Row():
|
68 |
-
with gr.Row():
|
69 |
-
with gr.Column(scale=100):
|
70 |
-
magic1=gr.Textbox(lines=4)
|
71 |
-
gr.HTML("""<style> .gr-button {
|
72 |
-
color: white !important;
|
73 |
-
border-color: #000000 !important;
|
74 |
-
background: #006699 !important;
|
75 |
-
}</style>""")
|
76 |
-
run=gr.Button("Generate Image")
|
77 |
-
with gr.Row():
|
78 |
-
with gr.Column(scale=100):
|
79 |
-
#Model selection dropdown
|
80 |
-
model_name1 = gr.Dropdown(label="Select Model", choices=[m for m in models], type="index", value=current_model, interactive=True)
|
81 |
-
with gr.Row():
|
82 |
-
with gr.Column(style="width=800px"):
|
83 |
-
output1=gr.Image(label=(f"{current_model}"))
|
84 |
-
|
85 |
-
|
86 |
with gr.Row():
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
def short_prompt(inputs):
|
94 |
return(inputs)
|
95 |
|
|
|
63 |
</div>
|
64 |
"""
|
65 |
)
|
66 |
+
with gr.Row():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
with gr.Row():
|
68 |
+
with gr.Column(scale=100):
|
69 |
+
magic1=gr.Textbox(lines=4)
|
70 |
+
gr.HTML("""<style> .gr-button {
|
71 |
+
color: white !important;
|
72 |
+
border-color: #000000 !important;
|
73 |
+
background: #006699 !important;
|
74 |
+
}</style>""")
|
75 |
+
run=gr.Button("Generate Image")
|
76 |
+
with gr.Row():
|
77 |
+
with gr.Column(scale=100):
|
78 |
+
#Model selection dropdown
|
79 |
+
model_name1 = gr.Dropdown(label="Select Model", choices=[m for m in models], type="index", value=current_model, interactive=True)
|
80 |
+
with gr.Row():
|
81 |
+
with gr.Column(style="width=800px"):
|
82 |
+
output1=gr.Image(label=(f"{current_model}"))
|
83 |
+
with gr.Row():
|
84 |
+
with gr.Column(scale=50):
|
85 |
+
input_text=gr.Textbox(label="Use this box to extend an idea automagically, by typing some words and clicking Extend Idea",lines=2)
|
86 |
+
use_short=gr.Button("Use Short Prompt")
|
87 |
+
see_prompts=gr.Button("Extend Idea")
|
88 |
def short_prompt(inputs):
|
89 |
return(inputs)
|
90 |
|