From 2e435242e5eab6a1e07c2eaefe8790ec24e83f41 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 18 Sep 2025 16:25:02 +0800 Subject: [PATCH] bugfix --- conf/config.json | 1 + files/README.md | 0 logs/README.md | 0 wwwroot/index.md | 11 +++++++++++ wwwroot/index.ui | 7 +++++++ wwwroot/v1/generate/index.dspy | 2 ++ 6 files changed, 21 insertions(+) create mode 100644 files/README.md create mode 100644 logs/README.md create mode 100644 wwwroot/index.md create mode 100644 wwwroot/index.ui create mode 100644 wwwroot/v1/generate/index.dspy diff --git a/conf/config.json b/conf/config.json index 2640ecd..d5fdf59 100644 --- a/conf/config.json +++ b/conf/config.json @@ -33,6 +33,7 @@ ], "processors":[ [".dspy","dspy"], + [".ui","bui"], [".md","md"] ], "session_max_time":3000, diff --git a/files/README.md b/files/README.md new file mode 100644 index 0000000..e69de29 diff --git a/logs/README.md b/logs/README.md new file mode 100644 index 0000000..e69de29 diff --git a/wwwroot/index.md b/wwwroot/index.md new file mode 100644 index 0000000..26b686f --- /dev/null +++ b/wwwroot/index.md @@ -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" +``` + diff --git a/wwwroot/index.ui b/wwwroot/index.ui new file mode 100644 index 0000000..c6f1ecd --- /dev/null +++ b/wwwroot/index.ui @@ -0,0 +1,7 @@ +{ + "widgettype":"MdWidget", + "options":{ + "md_url":"{{entire_url('index.md')}}", + "width":"100%" + } +} diff --git a/wwwroot/v1/generate/index.dspy b/wwwroot/v1/generate/index.dspy new file mode 100644 index 0000000..91d5461 --- /dev/null +++ b/wwwroot/v1/generate/index.dspy @@ -0,0 +1,2 @@ +debug(f'{params_kw=}') +return await generate(params_kw.aduio_file)