Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Intro

You can use this API to send the picture to your dify.ai server and get feedback.

Install env

pip install --no-cache-dir flask requests

API configuration

API_KEY = "Your API KEY"
UPLOAD_URL = "your server/v1/files/upload"
WORKFLOW_URL = "your server/v1/workflows/run"

Run

python dify_post_picture.py

Example

curl -X POST http://127.0.0.1:5000/process-image
-H "Content-Type: application/json"
-d '{"image_path": "files/test.jpg"}'

About

dify.ai的工作流上传图片API不是很友好,所以我做了一下封装,现在只需要传本地的图片路径,就可以拿到结果了。The image upload API in dify.ai's workflow isn't very user-friendly, so I created a wrapper for it. Now, you just need to provide the local image path, and you'll get the result.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages