Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -133,21 +133,26 @@ with gr.Blocks(
|
|
133 |
align-items: center !important;
|
134 |
text-align: center !important;
|
135 |
}
|
136 |
-
.
|
|
|
|
|
|
|
|
|
137 |
max-width: 800px !important;
|
138 |
margin: 0 auto !important;
|
139 |
}
|
140 |
"""
|
141 |
) as demo:
|
142 |
-
gr.
|
143 |
-
|
144 |
-
with gr.
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
with gr.
|
149 |
-
|
150 |
-
|
|
|
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(
|