Spaces:
Running on A100
Running on A100
Update app.py
Browse files
app.py
CHANGED
|
@@ -983,6 +983,7 @@ body {
|
|
| 983 |
min-height: 100vh !important;
|
| 984 |
width: 100% !important;
|
| 985 |
margin: 0 !important;
|
|
|
|
| 986 |
}
|
| 987 |
|
| 988 |
body {
|
|
@@ -998,7 +999,7 @@ footer {
|
|
| 998 |
position: relative !important;
|
| 999 |
isolation: isolate !important;
|
| 1000 |
max-width: none !important;
|
| 1001 |
-
width:
|
| 1002 |
min-height: 100vh !important;
|
| 1003 |
padding: 10px 18px 18px 18px !important;
|
| 1004 |
background: transparent !important;
|
|
@@ -1087,6 +1088,21 @@ footer {
|
|
| 1087 |
white-space: nowrap;
|
| 1088 |
overflow: hidden;
|
| 1089 |
text-overflow: ellipsis;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1090 |
}
|
| 1091 |
|
| 1092 |
.model-chip code {
|
|
@@ -1149,10 +1165,12 @@ footer {
|
|
| 1149 |
}
|
| 1150 |
|
| 1151 |
.output-card {
|
| 1152 |
-
min-height:
|
|
|
|
| 1153 |
border-color: var(--border-orange-soft) !important;
|
| 1154 |
width: 100% !important;
|
| 1155 |
box-sizing: border-box !important;
|
|
|
|
| 1156 |
}
|
| 1157 |
|
| 1158 |
label,
|
|
@@ -1257,9 +1275,9 @@ input[type="checkbox"] {
|
|
| 1257 |
}
|
| 1258 |
|
| 1259 |
#reasoning-box {
|
| 1260 |
-
min-height:
|
| 1261 |
-
max-height:
|
| 1262 |
-
overflow: auto;
|
| 1263 |
padding: 8px;
|
| 1264 |
border-radius: 8px;
|
| 1265 |
background: rgba(var(--input-rgb), var(--input-alpha)) !important;
|
|
@@ -1270,9 +1288,9 @@ input[type="checkbox"] {
|
|
| 1270 |
}
|
| 1271 |
|
| 1272 |
#output-box {
|
| 1273 |
-
min-height:
|
| 1274 |
-
max-height:
|
| 1275 |
-
overflow: auto;
|
| 1276 |
padding: 8px;
|
| 1277 |
border-radius: 8px;
|
| 1278 |
background: rgba(var(--input-rgb), var(--input-alpha)) !important;
|
|
@@ -1376,19 +1394,20 @@ button.clear-button,
|
|
| 1376 |
|
| 1377 |
.output-card {
|
| 1378 |
min-height: 520px !important;
|
|
|
|
| 1379 |
}
|
| 1380 |
|
| 1381 |
#reasoning-box {
|
| 1382 |
-
min-height:
|
|
|
|
| 1383 |
}
|
| 1384 |
|
| 1385 |
#output-box {
|
| 1386 |
-
min-height: 320px;
|
|
|
|
| 1387 |
}
|
| 1388 |
}
|
| 1389 |
""".replace("__LOGO_URL__", LOGO_URL or "")
|
| 1390 |
-
|
| 1391 |
-
|
| 1392 |
# ---------------- Gradio app ----------------
|
| 1393 |
with gr.Blocks(
|
| 1394 |
title="NuExtract3",
|
|
|
|
| 983 |
min-height: 100vh !important;
|
| 984 |
width: 100% !important;
|
| 985 |
margin: 0 !important;
|
| 986 |
+
overflow-x: hidden !important;
|
| 987 |
}
|
| 988 |
|
| 989 |
body {
|
|
|
|
| 999 |
position: relative !important;
|
| 1000 |
isolation: isolate !important;
|
| 1001 |
max-width: none !important;
|
| 1002 |
+
width: 100% !important;
|
| 1003 |
min-height: 100vh !important;
|
| 1004 |
padding: 10px 18px 18px 18px !important;
|
| 1005 |
background: transparent !important;
|
|
|
|
| 1088 |
white-space: nowrap;
|
| 1089 |
overflow: hidden;
|
| 1090 |
text-overflow: ellipsis;
|
| 1091 |
+
text-decoration: none !important;
|
| 1092 |
+
cursor: pointer;
|
| 1093 |
+
transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
|
| 1094 |
+
}
|
| 1095 |
+
|
| 1096 |
+
.model-chip:hover {
|
| 1097 |
+
border-color: var(--logo-blue);
|
| 1098 |
+
background: rgba(var(--panel-rgb), 1);
|
| 1099 |
+
transform: translateY(-1px);
|
| 1100 |
+
text-decoration: none !important;
|
| 1101 |
+
}
|
| 1102 |
+
|
| 1103 |
+
.model-chip:focus-visible {
|
| 1104 |
+
outline: none;
|
| 1105 |
+
box-shadow: 0 0 0 3px var(--focus-ring);
|
| 1106 |
}
|
| 1107 |
|
| 1108 |
.model-chip code {
|
|
|
|
| 1165 |
}
|
| 1166 |
|
| 1167 |
.output-card {
|
| 1168 |
+
min-height: 720px !important;
|
| 1169 |
+
max-height: 860px !important;
|
| 1170 |
border-color: var(--border-orange-soft) !important;
|
| 1171 |
width: 100% !important;
|
| 1172 |
box-sizing: border-box !important;
|
| 1173 |
+
overflow: hidden !important;
|
| 1174 |
}
|
| 1175 |
|
| 1176 |
label,
|
|
|
|
| 1275 |
}
|
| 1276 |
|
| 1277 |
#reasoning-box {
|
| 1278 |
+
min-height: 180px !important;
|
| 1279 |
+
max-height: 240px !important;
|
| 1280 |
+
overflow: auto !important;
|
| 1281 |
padding: 8px;
|
| 1282 |
border-radius: 8px;
|
| 1283 |
background: rgba(var(--input-rgb), var(--input-alpha)) !important;
|
|
|
|
| 1288 |
}
|
| 1289 |
|
| 1290 |
#output-box {
|
| 1291 |
+
min-height: 360px !important;
|
| 1292 |
+
max-height: 520px !important;
|
| 1293 |
+
overflow: auto !important;
|
| 1294 |
padding: 8px;
|
| 1295 |
border-radius: 8px;
|
| 1296 |
background: rgba(var(--input-rgb), var(--input-alpha)) !important;
|
|
|
|
| 1394 |
|
| 1395 |
.output-card {
|
| 1396 |
min-height: 520px !important;
|
| 1397 |
+
max-height: none !important;
|
| 1398 |
}
|
| 1399 |
|
| 1400 |
#reasoning-box {
|
| 1401 |
+
min-height: 160px !important;
|
| 1402 |
+
max-height: 220px !important;
|
| 1403 |
}
|
| 1404 |
|
| 1405 |
#output-box {
|
| 1406 |
+
min-height: 320px !important;
|
| 1407 |
+
max-height: 480px !important;
|
| 1408 |
}
|
| 1409 |
}
|
| 1410 |
""".replace("__LOGO_URL__", LOGO_URL or "")
|
|
|
|
|
|
|
| 1411 |
# ---------------- Gradio app ----------------
|
| 1412 |
with gr.Blocks(
|
| 1413 |
title="NuExtract3",
|