This commit is contained in:
yumoqing 2025-05-22 14:07:08 +00:00
parent 261ed0b9e9
commit fcf7d7c0d4
2 changed files with 3 additions and 1 deletions

View File

@ -90,6 +90,7 @@ class FastVLM:
async def generate(self, image_file, prompt): async def generate(self, image_file, prompt):
f = awaitify(self._generate) f = awaitify(self._generate)
return await f(image_file, promot)
def init(): def init():
g = ServerEnv() g = ServerEnv()

View File

@ -1,6 +1,7 @@
debug(f'{params_kw=}' debug(f'{params_kw=}')
image_path = realpath(params_kw.image_path) image_path = realpath(params_kw.image_path)
prompt = params_kw.prompt prompt = params_kw.prompt
debug(f'{image_path=}, {prompt=}')
d = await generate(image_path, prompt) d = await generate(image_path, prompt)
return d return d