HelloAI1 commited on
Commit
795980c
·
verified ·
1 Parent(s): 245693d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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="http://disneypixaraigenerator.com/wp-content/uploads/2023/12/cropped-android-chrome-512x512-1.png", # Replace with your logo URL
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
- welcome_screen.button("start-button").click(fn=start_generation, outputs=demo)
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)