diff --git a/app/fastvlm.py b/app/fastvlm.py index 093f272..0ae5b90 100644 --- a/app/fastvlm.py +++ b/app/fastvlm.py @@ -90,6 +90,7 @@ class FastVLM: async def generate(self, image_file, prompt): f = awaitify(self._generate) + return await f(image_file, promot) def init(): g = ServerEnv() diff --git a/wwwroot/v1/generate/index.dspy b/wwwroot/v1/generate/index.dspy index f585c26..ec3dcdc 100644 --- a/wwwroot/v1/generate/index.dspy +++ b/wwwroot/v1/generate/index.dspy @@ -1,6 +1,7 @@ -debug(f'{params_kw=}' +debug(f'{params_kw=}') image_path = realpath(params_kw.image_path) prompt = params_kw.prompt +debug(f'{image_path=}, {prompt=}') d = await generate(image_path, prompt) return d