bugfix
This commit is contained in:
parent
261ed0b9e9
commit
fcf7d7c0d4
@ -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()
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user