ccxccc commited on
Commit
ebf1949
1 Parent(s): 74569d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -32,10 +32,10 @@ def generate_image(model_name, prompt):
32
  return models_load[model_name](prompt)
33
 
34
  with gr.Blocks() as demo:
35
- with gr.Tab("The Dream").style(padding="20px", border_radius="10px", box_shadow="0px 5px 20px rgba(0, 0, 0, 0.1)", transition="transform 0.3s ease-in-out"):
36
  txt_input = gr.Textbox(label="Your prompt:", lines=4).style(container=False, min_width=1200, border="2px solid #ccc", border_radius="10px", padding="10px", box_shadow="0px 3px 10px rgba(0, 0, 0, 0.1)")
37
- gen_button = gr.Button("Generate up to 6 images").style(background="#FFD700", color="black", padding="10px 20px", border="none", border_radius="5px", cursor="pointer", transition="background 0.3s ease-in-out")
38
- stop_button = gr.Button("Stop", variant="secondary").style(background="#FFD700", color="black", padding="10px 20px", border="none", border_radius="5px", cursor="pointer", transition="background 0.3s ease-in-out")
39
  gen_button.click(lambda _: gr.update(interactive=True), None, stop_button)
40
 
41
  with gr.Row():
@@ -60,3 +60,4 @@ with gr.Blocks() as demo:
60
 
61
  demo.queue(concurrency_count=200)
62
  demo.launch()
 
 
32
  return models_load[model_name](prompt)
33
 
34
  with gr.Blocks() as demo:
35
+ with gr.Tab("The Dream").style(padding="20px", border_radius="15px", box_shadow="0px 10px 40px rgba(0, 0, 0, 0.1)", transition="transform 0.3s ease-in-out"):
36
  txt_input = gr.Textbox(label="Your prompt:", lines=4).style(container=False, min_width=1200, border="2px solid #ccc", border_radius="10px", padding="10px", box_shadow="0px 3px 10px rgba(0, 0, 0, 0.1)")
37
+ gen_button = gr.Button("Generate up to 6 images").style(background="#4CAF50", color="white", padding="10px 20px", border="none", border_radius="5px", cursor="pointer", transition="background 0.3s ease-in-out")
38
+ stop_button = gr.Button("Stop", variant="secondary").style(background="#f44336", color="white", padding="10px 20px", border="none", border_radius="5px", cursor="pointer", transition="background 0.3s ease-in-out")
39
  gen_button.click(lambda _: gr.update(interactive=True), None, stop_button)
40
 
41
  with gr.Row():
 
60
 
61
  demo.queue(concurrency_count=200)
62
  demo.launch()
63
+