coolmanx commited on
Commit
7696034
·
verified ·
1 Parent(s): c6819fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -71,22 +71,22 @@ with gr.Blocks(css=css) as demo:
71
  with gr.Row():
72
  prompt = gr.Text(
73
  label="Prompt",
74
- show_label=False,
75
  max_lines=1,
76
  placeholder="Enter your prompt",
77
- container=False,
78
  )
79
 
80
  run_button = gr.Button("Run", scale=0, variant="primary")
81
 
82
- result = gr.Image(label="Result", show_label=False)
83
 
84
- with gr.Accordion("Advanced Settings", open=False):
85
  negative_prompt = gr.Text(
86
  label="Negative prompt",
87
  max_lines=1,
88
  placeholder="Enter a negative prompt",
89
- visible=False,
90
  )
91
 
92
  seed = gr.Slider(
@@ -151,4 +151,4 @@ with gr.Blocks(css=css) as demo:
151
  )
152
 
153
  if __name__ == "__main__":
154
- demo.launch()
 
71
  with gr.Row():
72
  prompt = gr.Text(
73
  label="Prompt",
74
+ show_label=True,
75
  max_lines=1,
76
  placeholder="Enter your prompt",
77
+ container=True,
78
  )
79
 
80
  run_button = gr.Button("Run", scale=0, variant="primary")
81
 
82
+ result = gr.Image(label="Result", show_label=True)
83
 
84
+ with gr.Accordion("Advanced Settings", open=True):
85
  negative_prompt = gr.Text(
86
  label="Negative prompt",
87
  max_lines=1,
88
  placeholder="Enter a negative prompt",
89
+ visible=True,
90
  )
91
 
92
  seed = gr.Slider(
 
151
  )
152
 
153
  if __name__ == "__main__":
154
+ demo.launch(share=True)