Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -79,7 +79,7 @@ def infer(prompt1,prompt2,prompt3):
|
|
79 |
css="""
|
80 |
#col-container {
|
81 |
margin: 0 auto;
|
82 |
-
max-width:
|
83 |
}
|
84 |
#image-container {
|
85 |
aspect-ratio: 1 / 1;
|
@@ -97,26 +97,27 @@ with gr.Blocks(css=css) as demo:
|
|
97 |
# Image Generator
|
98 |
Currently running on {power_device}.
|
99 |
""")
|
100 |
-
with gr.
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
|
|
120 |
result = gr.Image(elem_id="image-container", label="Result", show_label=False, type='filepath')
|
121 |
run_button.click(
|
122 |
fn = infer,
|
|
|
79 |
css="""
|
80 |
#col-container {
|
81 |
margin: 0 auto;
|
82 |
+
max-width: 15cm;
|
83 |
}
|
84 |
#image-container {
|
85 |
aspect-ratio: 1 / 1;
|
|
|
97 |
# Image Generator
|
98 |
Currently running on {power_device}.
|
99 |
""")
|
100 |
+
with gr.Column():
|
101 |
+
with gr.Row():
|
102 |
+
prompt2 = gr.Text(
|
103 |
+
max_lines=1,
|
104 |
+
placeholder="(The Overall Scene)",
|
105 |
+
container=False,
|
106 |
+
)
|
107 |
+
with gr.Row():
|
108 |
+
prompt1 = gr.Text(
|
109 |
+
max_lines=1,
|
110 |
+
placeholder="(The Main Content)",
|
111 |
+
container=False,
|
112 |
+
)
|
113 |
+
with gr.Row():
|
114 |
+
prompt3 = gr.Text(
|
115 |
+
max_lines=1,
|
116 |
+
placeholder="(What Things Are Forbidden?)",
|
117 |
+
container=False,
|
118 |
+
)
|
119 |
+
with gr.Row():
|
120 |
+
run_button = gr.Button("Run", scale=0)
|
121 |
result = gr.Image(elem_id="image-container", label="Result", show_label=False, type='filepath')
|
122 |
run_button.click(
|
123 |
fn = infer,
|