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

Merge branch 'staging' into dev_roiset_coco

parents b257dfe4 2a1db0ad
No related branches found
No related tags found
No related merge requests found
......@@ -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