prithivMLmods commited on
Commit
46d3028
·
verified ·
1 Parent(s): 88dd2ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -121,7 +121,7 @@ examples = [
121
  # CSS to center the UI and style components
122
  css = '''
123
  .gradio-container {
124
- max-width: 888px !important;
125
  margin: 0 auto !important;
126
  }
127
  h1 {
@@ -130,13 +130,6 @@ h1 {
130
  footer {
131
  visibility: hidden;
132
  }
133
- .submit-btn {
134
- background-color: #e34949 !important;
135
- color: white !important;
136
- }
137
- .submit-btn:hover {
138
- background-color: #ff3b3b !important;
139
- }
140
  '''
141
 
142
  # Gradio interface
@@ -149,8 +142,8 @@ with gr.Blocks(css=css) as demo:
149
  placeholder="Enter your prompt",
150
  container=False,
151
  )
152
- run_button = gr.Button("Run", scale=0, elem_classes="submit-btn")
153
- result = gr.Gallery(label="Result", columns=1, show_label=False)
154
 
155
  with gr.Accordion("Advanced options", open=False):
156
  style_selection = gr.Dropdown(
 
121
  # CSS to center the UI and style components
122
  css = '''
123
  .gradio-container {
124
+ max-width: 590px !important;
125
  margin: 0 auto !important;
126
  }
127
  h1 {
 
130
  footer {
131
  visibility: hidden;
132
  }
 
 
 
 
 
 
 
133
  '''
134
 
135
  # Gradio interface
 
142
  placeholder="Enter your prompt",
143
  container=False,
144
  )
145
+ run_button = gr.Button("Run", scale=0, variant="primary")
146
+ result = gr.Gallery(label="Result", columns=1, show_label=False, preview=True)
147
 
148
  with gr.Accordion("Advanced options", open=False):
149
  style_selection = gr.Dropdown(