From fcf7d7c0d46ce118cfcc975b5899be5e36735a02 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 22 May 2025 14:07:08 +0000 Subject: [PATCH] bugfix --- app/fastvlm.py | 1 + wwwroot/v1/generate/index.dspy | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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