bugfix
This commit is contained in:
parent
c2897091b7
commit
2e435242e5
@ -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
0
files/README.md
Normal file
0
logs/README.md
Normal file
0
logs/README.md
Normal file
11
wwwroot/index.md
Normal file
11
wwwroot/index.md
Normal 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
7
wwwroot/index.ui
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"widgettype":"MdWidget",
|
||||||
|
"options":{
|
||||||
|
"md_url":"{{entire_url('index.md')}}",
|
||||||
|
"width":"100%"
|
||||||
|
}
|
||||||
|
}
|
||||||
2
wwwroot/v1/generate/index.dspy
Normal file
2
wwwroot/v1/generate/index.dspy
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
debug(f'{params_kw=}')
|
||||||
|
return await generate(params_kw.aduio_file)
|
||||||
Loading…
x
Reference in New Issue
Block a user