Alexandre-Numind commited on
Commit
c98e648
·
verified ·
1 Parent(s): 475efa8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +37 -5
app.py CHANGED
@@ -978,6 +978,13 @@ footer,
978
  color: var(--text) !important;
979
  }
980
 
 
 
 
 
 
 
 
981
  body {
982
  background: var(--bg) !important;
983
  background-attachment: fixed !important;
@@ -990,9 +997,12 @@ footer {
990
  .gradio-container {
991
  position: relative !important;
992
  isolation: isolate !important;
993
- max-width: 1680px !important;
 
 
994
  padding: 10px 18px 18px 18px !important;
995
  background: transparent !important;
 
996
  }
997
 
998
  .gradio-container::before {
@@ -1014,6 +1024,10 @@ footer {
1014
  gap: 18px !important;
1015
  }
1016
 
 
 
 
 
1017
  .app-header {
1018
  position: relative;
1019
  display: flex;
@@ -1129,9 +1143,16 @@ footer {
1129
  backdrop-filter: blur(10px) saturate(1.18);
1130
  }
1131
 
 
 
 
 
 
1132
  .output-card {
1133
- min-height: 820px !important;
1134
  border-color: var(--border-orange-soft) !important;
 
 
1135
  }
1136
 
1137
  label,
@@ -1249,8 +1270,8 @@ input[type="checkbox"] {
1249
  }
1250
 
1251
  #output-box {
1252
- min-height: 430px;
1253
- max-height: 520px;
1254
  overflow: auto;
1255
  padding: 8px;
1256
  border-radius: 8px;
@@ -1334,6 +1355,11 @@ button.clear-button,
1334
  }
1335
 
1336
  @media (max-width: 1100px) {
 
 
 
 
 
1337
  .app-header {
1338
  align-items: flex-start;
1339
  flex-direction: column;
@@ -1387,7 +1413,13 @@ with gr.Blocks(
1387
 
1388
  <div class="brand-title">
1389
  <div class="brand-name">NuExtract3</span></div>
1390
- <div class="model-chip">Model&nbsp;<code>{DEFAULT_MODEL}</code></div>
 
 
 
 
 
 
1391
  </div>
1392
  </div>
1393
 
 
978
  color: var(--text) !important;
979
  }
980
 
981
+ html,
982
+ body {
983
+ min-height: 100vh !important;
984
+ width: 100% !important;
985
+ margin: 0 !important;
986
+ }
987
+
988
  body {
989
  background: var(--bg) !important;
990
  background-attachment: fixed !important;
 
997
  .gradio-container {
998
  position: relative !important;
999
  isolation: isolate !important;
1000
+ max-width: none !important;
1001
+ width: 100vw !important;
1002
+ min-height: 100vh !important;
1003
  padding: 10px 18px 18px 18px !important;
1004
  background: transparent !important;
1005
+ box-sizing: border-box !important;
1006
  }
1007
 
1008
  .gradio-container::before {
 
1024
  gap: 18px !important;
1025
  }
1026
 
1027
+ .gradio-row {
1028
+ width: 100% !important;
1029
+ }
1030
+
1031
  .app-header {
1032
  position: relative;
1033
  display: flex;
 
1143
  backdrop-filter: blur(10px) saturate(1.18);
1144
  }
1145
 
1146
+ .main-card {
1147
+ width: 100% !important;
1148
+ box-sizing: border-box !important;
1149
+ }
1150
+
1151
  .output-card {
1152
+ min-height: calc(100vh - 190px) !important;
1153
  border-color: var(--border-orange-soft) !important;
1154
+ width: 100% !important;
1155
+ box-sizing: border-box !important;
1156
  }
1157
 
1158
  label,
 
1270
  }
1271
 
1272
  #output-box {
1273
+ min-height: calc(100vh - 560px);
1274
+ max-height: none;
1275
  overflow: auto;
1276
  padding: 8px;
1277
  border-radius: 8px;
 
1355
  }
1356
 
1357
  @media (max-width: 1100px) {
1358
+ .gradio-container {
1359
+ width: 100% !important;
1360
+ padding: 10px 12px 18px 12px !important;
1361
+ }
1362
+
1363
  .app-header {
1364
  align-items: flex-start;
1365
  flex-direction: column;
 
1413
 
1414
  <div class="brand-title">
1415
  <div class="brand-name">NuExtract3</span></div>
1416
+ <a
1417
+ class="model-chip"
1418
+ href="https://huggingface.co/numind/NuExtract3"
1419
+ target="_blank"
1420
+ rel="noopener noreferrer">
1421
+ Model&nbsp;<code>{DEFAULT_MODEL}</code>
1422
+ </a>
1423
  </div>
1424
  </div>
1425