Spaces:
Runtime error
Runtime error
tombetthauser
commited on
Commit
β’
4eca7fa
1
Parent(s):
bbadd6b
Created test row in welcome tab
Browse files
app.py
CHANGED
@@ -260,7 +260,7 @@ def simple_image_prompt(prompt, dropdown, size_dropdown):
|
|
260 |
pipe(prompt=prompt, guidance_scale=guidance, num_inference_steps=steps, generator=generator, height=int((height // 8) * 8), width=int((width // 8) * 8)).images[0],
|
261 |
f"prompt = '{prompt}'\nseed = {int(seed)}\nguidance_scale = {guidance}\ninference steps = {steps}\nheight = {int((height // 8) * 8)}\nwidth = {int((width // 8) * 8)}"
|
262 |
)
|
263 |
-
|
264 |
|
265 |
|
266 |
# ~~~ WELCOME TAB ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
@@ -277,11 +277,11 @@ with gr.Blocks(css=".gradio-container {max-width: 650px}") as new_welcome:
|
|
277 |
<br>
|
278 |
<a href="http://www.astronaut.horse">http://www.astronaut.horse</a>
|
279 |
''')
|
280 |
-
dropdown = gr.Dropdown([dropdown for dropdown in list(DROPDOWNS) if 'ahx-model' in dropdown], label="choose style...")
|
281 |
-
size_dropdown = gr.Dropdown(['square', 'landscape', 'portrait'], label="image size / dimensions...")
|
282 |
-
# dropdown = gr.Dropdown(['1 image', '2 images', '3 images', '4 images'], label="output image count...")
|
283 |
|
284 |
-
|
|
|
|
|
|
|
285 |
prompt = gr.Textbox(label="image prompt...", elem_id="input-text")
|
286 |
|
287 |
go_button = gr.Button("generate image", elem_id="go-button")
|
@@ -301,7 +301,6 @@ def infer(text, dropdown):
|
|
301 |
)
|
302 |
return images_list.images, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
303 |
|
304 |
-
|
305 |
css = ""
|
306 |
examples = []
|
307 |
|
|
|
260 |
pipe(prompt=prompt, guidance_scale=guidance, num_inference_steps=steps, generator=generator, height=int((height // 8) * 8), width=int((width // 8) * 8)).images[0],
|
261 |
f"prompt = '{prompt}'\nseed = {int(seed)}\nguidance_scale = {guidance}\ninference steps = {steps}\nheight = {int((height // 8) * 8)}\nwidth = {int((width // 8) * 8)}"
|
262 |
)
|
263 |
+
|
264 |
|
265 |
|
266 |
# ~~~ WELCOME TAB ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
277 |
<br>
|
278 |
<a href="http://www.astronaut.horse">http://www.astronaut.horse</a>
|
279 |
''')
|
|
|
|
|
|
|
280 |
|
281 |
+
with gr.Row():
|
282 |
+
dropdown = gr.Dropdown([dropdown for dropdown in list(DROPDOWNS) if 'ahx-model' in dropdown], label="choose style...")
|
283 |
+
size_dropdown = gr.Dropdown(['square', 'landscape', 'portrait'], label="image size / dimensions...")
|
284 |
+
# dropdown = gr.Dropdown(['1 image', '2 images', '3 images', '4 images'], label="output image count...")
|
285 |
prompt = gr.Textbox(label="image prompt...", elem_id="input-text")
|
286 |
|
287 |
go_button = gr.Button("generate image", elem_id="go-button")
|
|
|
301 |
)
|
302 |
return images_list.images, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
303 |
|
|
|
304 |
css = ""
|
305 |
examples = []
|
306 |
|