Update app.py
Browse files
app.py
CHANGED
|
@@ -281,22 +281,22 @@ def build_interface():
|
|
| 281 |
/* Set column widths */
|
| 282 |
[data-testid="block-container"] .scrolling-dataframe th:nth-child(1),
|
| 283 |
[data-testid="block-container"] .scrolling-dataframe td:nth-child(1) {
|
| 284 |
-
width:
|
| 285 |
}
|
| 286 |
|
| 287 |
[data-testid="block-container"] .scrolling-dataframe th:nth-child(2),
|
| 288 |
[data-testid="block-container"] .scrolling-dataframe td:nth-child(2) {
|
| 289 |
-
width:
|
| 290 |
}
|
| 291 |
|
| 292 |
[data-testid="block-container"] .scrolling-dataframe th:nth-child(3),
|
| 293 |
[data-testid="block-container"] .scrolling-dataframe td:nth-child(3) {
|
| 294 |
-
width:
|
| 295 |
}
|
| 296 |
|
| 297 |
[data-testid="block-container"] .scrolling-dataframe th:nth-child(4),
|
| 298 |
[data-testid="block-container"] .scrolling-dataframe td:nth-child(4) {
|
| 299 |
-
width:
|
| 300 |
}
|
| 301 |
"""
|
| 302 |
with gr.Blocks(css=css) as demo:
|
|
|
|
| 281 |
/* Set column widths */
|
| 282 |
[data-testid="block-container"] .scrolling-dataframe th:nth-child(1),
|
| 283 |
[data-testid="block-container"] .scrolling-dataframe td:nth-child(1) {
|
| 284 |
+
width: 6%; /* Start column */
|
| 285 |
}
|
| 286 |
|
| 287 |
[data-testid="block-container"] .scrolling-dataframe th:nth-child(2),
|
| 288 |
[data-testid="block-container"] .scrolling-dataframe td:nth-child(2) {
|
| 289 |
+
width: 47%; /* Original text */
|
| 290 |
}
|
| 291 |
|
| 292 |
[data-testid="block-container"] .scrolling-dataframe th:nth-child(3),
|
| 293 |
[data-testid="block-container"] .scrolling-dataframe td:nth-child(3) {
|
| 294 |
+
width: 47%; /* Translated text */
|
| 295 |
}
|
| 296 |
|
| 297 |
[data-testid="block-container"] .scrolling-dataframe th:nth-child(4),
|
| 298 |
[data-testid="block-container"] .scrolling-dataframe td:nth-child(4) {
|
| 299 |
+
width: 0%; /* End column */
|
| 300 |
}
|
| 301 |
"""
|
| 302 |
with gr.Blocks(css=css) as demo:
|