Rooni commited on
Commit
711ba8c
·
verified ·
1 Parent(s): 9fce09e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -23
app.py CHANGED
@@ -75,31 +75,14 @@ def api_gradio(prompt, width, height):
75
 
76
  return [image]
77
 
78
- css = css + """/*
79
- footer {
80
- visibility: hidden
81
- }
82
- #generate_button {
83
- color: white;
84
- border-color: #007bff;
85
- background: #2563eb;
86
- }*/
87
- #save_button {
88
- color: white;
89
- border-color: #028b40;
90
- border-radius: 100%;
91
- background: #01b97c;
92
- /*width: 200px;*/
93
- }/*
94
- #settings_header {
95
- background: rgb(245, 105, 105);
96
- }*/
97
- """
98
 
99
  with gr.Blocks(css=css) as demo:
100
- with gr.Row():
101
- prompt = gr.Textbox(show_label=False, placeholder="Описание изображения", max_lines=3, lines=1, interactive=True, scale=20)
102
- button = gr.Button(value="Generate", scale=1)
 
 
103
  with gr.Accordion("Дополнительные настройки", open=False):
104
  with gr.Row():
105
  width = gr.Slider(label="Ширина", minimum=512, maximum=2048, step=1, value=1024, interactive=True)
 
75
 
76
  return [image]
77
 
78
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
 
80
  with gr.Blocks(css=css) as demo:
81
+ with gr.Column():
82
+ with gr.Row():
83
+ prompt = gr.Textbox(show_label=False, placeholder="Описание изображения", max_lines=3, lines=1, interactive=True, scale=20)
84
+ with gr.Row():
85
+ button = gr.Button(value="Generate", scale=1)
86
  with gr.Accordion("Дополнительные настройки", open=False):
87
  with gr.Row():
88
  width = gr.Slider(label="Ширина", minimum=512, maximum=2048, step=1, value=1024, interactive=True)