Add AMD support via ort alternative to trt
This commit is contained in:
@@ -29,6 +29,7 @@ random batch of items with no truth data yet, processing each in turn:
|
||||
|
||||
import argparse
|
||||
import json
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
@@ -174,8 +175,12 @@ def main():
|
||||
description=__doc__,
|
||||
formatter_class=argparse.RawDescriptionHelpFormatter,
|
||||
)
|
||||
parser.add_argument("--jellyfin-url", required=True)
|
||||
parser.add_argument("--api-key", required=True)
|
||||
parser.add_argument("--jellyfin-url", default=os.environ.get("JELLYFIN_URL"),
|
||||
required=not os.environ.get("JELLYFIN_URL"),
|
||||
help="Jellyfin base URL. Env: JELLYFIN_URL")
|
||||
parser.add_argument("--api-key", default=os.environ.get("JELLYFIN_API_KEY"),
|
||||
required=not os.environ.get("JELLYFIN_API_KEY"),
|
||||
help="Jellyfin API key. Env: JELLYFIN_API_KEY")
|
||||
group = parser.add_mutually_exclusive_group()
|
||||
group.add_argument("--item-id", help="Jellyfin item id of the title")
|
||||
group.add_argument("--title", help="Title to search for (uses first match)")
|
||||
|
||||
Reference in New Issue
Block a user