datasaur-dev commited on
Commit
d122da1
·
verified ·
1 Parent(s): 8df7250

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -10
app.py CHANGED
@@ -133,21 +133,26 @@ with gr.Blocks(
133
  align-items: center !important;
134
  text-align: center !important;
135
  }
136
- .gradio-container {
 
 
 
 
137
  max-width: 800px !important;
138
  margin: 0 auto !important;
139
  }
140
  """
141
  ) as demo:
142
- gr.Markdown("# Time Entry Improvement")
143
- with gr.Row():
144
- with gr.Column(scale=4):
145
- text_area = gr.Textbox(label="Your Text", lines=5)
146
- previous_text_area = gr.Textbox(label="Previous Text", lines=5, visible=False)
147
- with gr.Column(scale=1):
148
- with gr.Row(elem_classes="centered"):
149
- category_label = gr.Markdown("", visible=False)
150
- magic_button = gr.Button("Magic Button")
 
151
 
152
 
153
  magic_button.click(
 
133
  align-items: center !important;
134
  text-align: center !important;
135
  }
136
+ .contain {
137
+ max-width: 800px !important;
138
+ margin: 0 auto !important;
139
+ }
140
+ .gradio-container, .gradio-container > .main, .block {
141
  max-width: 800px !important;
142
  margin: 0 auto !important;
143
  }
144
  """
145
  ) as demo:
146
+ with gr.Column(elem_classes="contain"):
147
+ gr.Markdown("# Time Entry Improvement")
148
+ with gr.Row():
149
+ with gr.Column(scale=4):
150
+ text_area = gr.Textbox(label="Your Text", lines=5)
151
+ previous_text_area = gr.Textbox(label="Previous Text", lines=5, visible=False)
152
+ with gr.Column(scale=1):
153
+ with gr.Row(elem_classes="centered"):
154
+ category_label = gr.Markdown("", visible=False)
155
+ magic_button = gr.Button("Magic Button")
156
 
157
 
158
  magic_button.click(