Spaces:
Running
Running
File size: 686 Bytes
9223079 368319c 2d554b0 9223079 e3598ee 7b977a8 e054474 e3598ee 9223079 7acaad7 2d554b0 7acaad7 9223079 7acaad7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
import argparse
from pathlib import Path
from ui.app_class import ImageMatchingApp
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument(
"--server_name",
type=str,
default="0.0.0.0",
help="server name",
)
parser.add_argument(
"--server_port",
type=int,
default=7860,
help="server port",
)
parser.add_argument(
"--config",
type=str,
default=Path(__file__).parent / "ui/config.yaml",
help="config file",
)
args = parser.parse_args()
ImageMatchingApp(
args.server_name, args.server_port, config=args.config
).run()
|