Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -158,18 +158,18 @@ def start_generation():
|
|
| 158 |
# Initial Welcome Screen
|
| 159 |
with gr.Blocks() as welcome_screen:
|
| 160 |
with gr.Row():
|
| 161 |
-
gr.Image(
|
| 162 |
-
value="
|
| 163 |
elem_id="logo",
|
| 164 |
height=200,
|
| 165 |
width=300
|
| 166 |
)
|
| 167 |
|
| 168 |
with gr.Row():
|
| 169 |
-
gr.Markdown("<h1 style='text-align: center;'>Disney Pixar AI Generator</h1>", elem_id="title")
|
| 170 |
|
| 171 |
with gr.Row():
|
| 172 |
-
gr.Button("Get Started", variant='primary', elem_id="start-button")
|
| 173 |
|
| 174 |
# Main Generation Screen
|
| 175 |
with gr.Blocks(css=css) as demo:
|
|
@@ -225,7 +225,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 225 |
text_button.click(flip_text, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed], outputs=image_output)
|
| 226 |
|
| 227 |
# Connect Welcome Screen to Generation Screen
|
| 228 |
-
|
| 229 |
|
| 230 |
# Launch the Gradio app
|
| 231 |
welcome_screen.launch(max_threads=128)
|
|
|
|
| 158 |
# Initial Welcome Screen
|
| 159 |
with gr.Blocks() as welcome_screen:
|
| 160 |
with gr.Row():
|
| 161 |
+
logo = gr.Image(
|
| 162 |
+
value="https://i.ibb.co/9Y3gZ7S/Pixar-Logo.png", # Replace with your logo URL
|
| 163 |
elem_id="logo",
|
| 164 |
height=200,
|
| 165 |
width=300
|
| 166 |
)
|
| 167 |
|
| 168 |
with gr.Row():
|
| 169 |
+
title = gr.Markdown("<h1 style='text-align: center;'>Disney Pixar AI Generator</h1>", elem_id="title")
|
| 170 |
|
| 171 |
with gr.Row():
|
| 172 |
+
start_button = gr.Button("Get Started", variant='primary', elem_id="start-button")
|
| 173 |
|
| 174 |
# Main Generation Screen
|
| 175 |
with gr.Blocks(css=css) as demo:
|
|
|
|
| 225 |
text_button.click(flip_text, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed], outputs=image_output)
|
| 226 |
|
| 227 |
# Connect Welcome Screen to Generation Screen
|
| 228 |
+
start_button.click(fn=start_generation, outputs=demo)
|
| 229 |
|
| 230 |
# Launch the Gradio app
|
| 231 |
welcome_screen.launch(max_threads=128)
|