This commit is contained in:
yumoqing 2025-09-18 16:25:02 +08:00
parent c2897091b7
commit 2e435242e5
6 changed files with 21 additions and 0 deletions

View File

@ -33,6 +33,7 @@
], ],
"processors":[ "processors":[
[".dspy","dspy"], [".dspy","dspy"],
[".ui","bui"],
[".md","md"] [".md","md"]
], ],
"session_max_time":3000, "session_max_time":3000,

0
files/README.md Normal file
View File

0
logs/README.md Normal file
View File

11
wwwroot/index.md Normal file
View File

@ -0,0 +1,11 @@
# A FastVLM webserver
[fastvlm](https://github.com/apple/ml-fastvlm) is apple released a open source
multiple modal llm, it can input image, promt and generate text
## Usage
```
curl https://{domain}/v1/generate \
-F "prompt=描述这张图片" \
-F "image_path=@path_to_image"
```

7
wwwroot/index.ui Normal file
View File

@ -0,0 +1,7 @@
{
"widgettype":"MdWidget",
"options":{
"md_url":"{{entire_url('index.md')}}",
"width":"100%"
}
}

View File

@ -0,0 +1,2 @@
debug(f'{params_kw=}')
return await generate(params_kw.aduio_file)