Skip to content
Snippets Groups Projects
Commit 2a1db0ad authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

Merge branch 'trec-adaptive-feedback-issue0014' into 'staging'

Trec adaptive feedback issue0014

See merge request rhodes/model_server!55
parents e3c86255 d82e811b
No related branches found
No related tags found
2 merge requests!65Release 2024.10.01,!55Trec adaptive feedback issue0014
......@@ -4,7 +4,7 @@ from .session import session
def validate_workflow_inputs(model_ids, inpaths):
for mid in model_ids:
if mid not in session.describe_loaded_models().keys():
if mid and mid not in session.describe_loaded_models().keys():
raise HTTPException(
status_code=409,
detail=f'Model {mid} has not been loaded'
......
......@@ -2,7 +2,7 @@
Implementation of image analysis work behind API endpoints, without knowledge of persistent data in server session.
"""
from pathlib import Path
from typing import Dict
from typing import Dict, Union
from pydantic import BaseModel
......@@ -12,7 +12,7 @@ from ...base.workflows import Timer
class WorkflowRunRecord(BaseModel):
pixel_model_id: str
object_model_id: str
object_model_id: Union[str, None] = None
input_filepath: str
pixel_map_filepath: str
object_map_filepath: str
......
......@@ -6,7 +6,7 @@ from urllib3 import Retry
import uvicorn
import webbrowser
from conf.defaults import server_conf
from ..conf.defaults import server_conf
def parse_args():
parser = argparse.ArgumentParser(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment