sayakpaul HF staff commited on
Commit
484064c
1 Parent(s): e9e4cb1

more elements.

Browse files
Files changed (2) hide show
  1. app.py +23 -0
  2. constants.py +0 -12
app.py CHANGED
@@ -60,5 +60,28 @@ with block:
60
  </div>
61
  """
62
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
 
64
  block.launch()
 
60
  </div>
61
  """
62
  )
63
+ with gr.Group():
64
+ with gr.Box():
65
+ with gr.Row(elem_id="prompt-container").style(
66
+ mobile_collapse=False, equal_height=True
67
+ ):
68
+ with gr.Column():
69
+ text = gr.Textbox(
70
+ label="Enter your prompt",
71
+ show_label=False,
72
+ max_lines=1,
73
+ placeholder="Enter your prompt",
74
+ elem_id="prompt-text-input",
75
+ ).style(
76
+ border=(True, False, True, True),
77
+ rounded=(True, False, False, True),
78
+ container=False,
79
+ )
80
+ guidance_scale = gr.Slider(
81
+ label="Guidance Scale", minimum=10, maximum=50, value=40, step=1.0
82
+ )
83
+ btn = gr.Button("Generate image").style(
84
+ margin=False, rounded=(False, True, True, False), full_width=False
85
+ )
86
 
87
  block.launch()
constants.py CHANGED
@@ -121,15 +121,3 @@ css = """
121
  #component-16{border-top-width: 1px!important;margin-top: 1em}
122
  .image_duplication{position: absolute; width: 100px; left: 50px}
123
  """
124
-
125
-
126
- examples = [
127
- ["Yoda", "low quality", 40],
128
- ["A red pokemon with green eyes", 40],
129
- ["cute Sundar Pihcai creature", 40],
130
- ["Hello kitty", 40],
131
- ]
132
-
133
- num_images_to_gen = 3
134
-
135
- img_height = img_width = 512
 
121
  #component-16{border-top-width: 1px!important;margin-top: 1em}
122
  .image_duplication{position: absolute; width: 100px; left: 50px}
123
  """