We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 570ca0a commit 59f0ac1Copy full SHA for 59f0ac1
robotoff/cli/triton.py
@@ -1,10 +1,12 @@
1
+from typing import Optional
2
+
3
import typer
4
5
app = typer.Typer()
6
7
8
@app.command()
-def load_model(model_name: str, model_version: str | None = None):
9
+def load_model(model_name: str, model_version: Optional[str] = None):
10
"""Load a model in Triton Inference Server.
11
12
If the model was never loaded, it will be loaded with the default
@@ -45,7 +47,7 @@ def list_models():
45
47
46
48
49
-def get_model_config(model_name: str, model_version: str | None = None):
50
+def get_model_config(model_name: str, model_version: Optional[str] = None):
51
"""Display the configuration of a model in Triton Inference Server."""
52
from robotoff import triton
53
0 commit comments