Spaces:
Running on A100
Running on A100
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def parse_args() -> argparse.Namespace:
|
|
| 22 |
|
| 23 |
parser.add_argument(
|
| 24 |
"--model-name",
|
| 25 |
-
default=os.environ.get("MODEL_NAME", "
|
| 26 |
help="Model name served by the OpenAI-compatible endpoint.",
|
| 27 |
)
|
| 28 |
parser.add_argument(
|
|
@@ -55,7 +55,7 @@ def parse_args() -> argparse.Namespace:
|
|
| 55 |
parser.add_argument(
|
| 56 |
"--max-tokens",
|
| 57 |
type=int,
|
| 58 |
-
default=int(os.environ.get("NUEXTRACT_MAX_TOKENS", "
|
| 59 |
help="Maximum tokens for model generation. Hidden from the UI.",
|
| 60 |
)
|
| 61 |
parser.add_argument(
|
|
@@ -1301,7 +1301,7 @@ with gr.Blocks(
|
|
| 1301 |
{logo_html}
|
| 1302 |
|
| 1303 |
<div class="brand-title">
|
| 1304 |
-
<div class="brand-name">
|
| 1305 |
<div class="model-chip">Model <code>{DEFAULT_MODEL}</code></div>
|
| 1306 |
</div>
|
| 1307 |
</div>
|
|
@@ -1326,6 +1326,9 @@ with gr.Blocks(
|
|
| 1326 |
- **Multilingual** documents.
|
| 1327 |
- **Reasoning** and non-reasoning inference modes.
|
| 1328 |
- **Template generation** for structured extraction from natural language or input document.
|
|
|
|
|
|
|
|
|
|
| 1329 |
|
| 1330 |
""",
|
| 1331 |
elem_classes=["intro-card"],
|
|
|
|
| 22 |
|
| 23 |
parser.add_argument(
|
| 24 |
"--model-name",
|
| 25 |
+
default=os.environ.get("MODEL_NAME", "numind/NuExtract3"),
|
| 26 |
help="Model name served by the OpenAI-compatible endpoint.",
|
| 27 |
)
|
| 28 |
parser.add_argument(
|
|
|
|
| 55 |
parser.add_argument(
|
| 56 |
"--max-tokens",
|
| 57 |
type=int,
|
| 58 |
+
default=int(os.environ.get("NUEXTRACT_MAX_TOKENS", "10000")),
|
| 59 |
help="Maximum tokens for model generation. Hidden from the UI.",
|
| 60 |
)
|
| 61 |
parser.add_argument(
|
|
|
|
| 1301 |
{logo_html}
|
| 1302 |
|
| 1303 |
<div class="brand-title">
|
| 1304 |
+
<div class="brand-name">NuExtract3</span></div>
|
| 1305 |
<div class="model-chip">Model <code>{DEFAULT_MODEL}</code></div>
|
| 1306 |
</div>
|
| 1307 |
</div>
|
|
|
|
| 1326 |
- **Multilingual** documents.
|
| 1327 |
- **Reasoning** and non-reasoning inference modes.
|
| 1328 |
- **Template generation** for structured extraction from natural language or input document.
|
| 1329 |
+
|
| 1330 |
+
|
| 1331 |
+
Find the model and inference code here: [NuExtract3](https://huggingface.co/numind/NuExtract3).
|
| 1332 |
|
| 1333 |
""",
|
| 1334 |
elem_classes=["intro-card"],
|