piyk commited on
Commit
219ad6f
·
verified ·
1 Parent(s): 75b503f
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -57,13 +57,11 @@ def generate_image(prompt, num_inference_steps, height, width, guidance_scale, s
57
  # Create the Gradio interface
58
 
59
  examples = [
60
- ["A cat holding a sign that says hello world"],
61
- ["a tiny astronaut hatching from an egg on the moon"],
62
- ["An astrounat on mars in a futuristic cyborg suit."],
63
  ]
64
 
65
  css = '''
66
- .gradio-container{max-width: 1000px !important}
67
  h1{text-align:center}
68
  '''
69
  with gr.Blocks(css=css) as demo:
@@ -78,14 +76,12 @@ with gr.Blocks(css=css) as demo:
78
  )
79
  gr.HTML(
80
  """
81
- Made by <a href='https://linktr.ee/Nick088' target='_blank'>Nick088</a>
82
- <br> <a href="https://discord.gg/osai"> <img src="https://img.shields.io/discord/1198701940511617164?color=%23738ADB&label=Discord&style=for-the-badge" alt="Discord"> </a>
83
  """
84
  )
85
  with gr.Group():
86
  with gr.Column():
87
  prompt = gr.Textbox(label="Prompt", info="Describe the image you want", placeholder="A cat...")
88
- run_button = gr.Button("Run")
89
  result = gr.Gallery(label="Generated AI Images", elem_id="gallery")
90
  with gr.Accordion("Advanced options", open=False):
91
  with gr.Row():
 
57
  # Create the Gradio interface
58
 
59
  examples = [
60
+ ["Full-body, realistic photo of a computer engineer in a data center, conducting an experiment"]
 
 
61
  ]
62
 
63
  css = '''
64
+ .gradio-container{max-width: 100% !important}
65
  h1{text-align:center}
66
  '''
67
  with gr.Blocks(css=css) as demo:
 
76
  )
77
  gr.HTML(
78
  """
 
 
79
  """
80
  )
81
  with gr.Group():
82
  with gr.Column():
83
  prompt = gr.Textbox(label="Prompt", info="Describe the image you want", placeholder="A cat...")
84
+ run_button = gr.Button("Generate", scale=0)
85
  result = gr.Gallery(label="Generated AI Images", elem_id="gallery")
86
  with gr.Accordion("Advanced options", open=False):
87
  with gr.Row():