Yaron Koresh commited on
Commit
cc8258d
·
verified ·
1 Parent(s): 7300f25

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -21
app.py CHANGED
@@ -79,7 +79,7 @@ def infer(prompt1,prompt2,prompt3):
79
  css="""
80
  #col-container {
81
  margin: 0 auto;
82
- max-width: 14cm;
83
  }
84
  #image-container {
85
  aspect-ratio: 1 / 1;
@@ -97,26 +97,27 @@ with gr.Blocks(css=css) as demo:
97
  # Image Generator
98
  Currently running on {power_device}.
99
  """)
100
- with gr.Row():
101
- prompt2 = gr.Text(
102
- show_label=False,
103
- max_lines=1,
104
- placeholder="(The Overall Scene)",
105
- container=False,
106
- )
107
- prompt1 = gr.Text(
108
- show_label=False,
109
- max_lines=1,
110
- placeholder="(The Main Content)",
111
- container=False,
112
- )
113
- prompt3 = gr.Text(
114
- show_label=False,
115
- max_lines=1,
116
- placeholder="(What Things Are Forbidden?)",
117
- container=False,
118
- )
119
- run_button = gr.Button("Run", scale=0)
 
120
  result = gr.Image(elem_id="image-container", label="Result", show_label=False, type='filepath')
121
  run_button.click(
122
  fn = infer,
 
79
  css="""
80
  #col-container {
81
  margin: 0 auto;
82
+ max-width: 15cm;
83
  }
84
  #image-container {
85
  aspect-ratio: 1 / 1;
 
97
  # Image Generator
98
  Currently running on {power_device}.
99
  """)
100
+ with gr.Column():
101
+ with gr.Row():
102
+ prompt2 = gr.Text(
103
+ max_lines=1,
104
+ placeholder="(The Overall Scene)",
105
+ container=False,
106
+ )
107
+ with gr.Row():
108
+ prompt1 = gr.Text(
109
+ max_lines=1,
110
+ placeholder="(The Main Content)",
111
+ container=False,
112
+ )
113
+ with gr.Row():
114
+ prompt3 = gr.Text(
115
+ max_lines=1,
116
+ placeholder="(What Things Are Forbidden?)",
117
+ container=False,
118
+ )
119
+ with gr.Row():
120
+ run_button = gr.Button("Run", scale=0)
121
  result = gr.Image(elem_id="image-container", label="Result", show_label=False, type='filepath')
122
  run_button.click(
123
  fn = infer,