Flowise部署
**
do
cker run -d --network=host --name flowise -p 13000:3000 flowiseai/flowise
**
**
智能体部署
**
||、嵌入H5:
||、Python服务
import requests
API_URL = “http://172.10.32.234:3000/api/v1/prediction/e27198af-a44a-4482-8d23-76e8baba24f9”
def query(payload):
response = requests.post(API_URL, json=payload)
return response.json()
output = query({
“question”: “Hey, how are you?”,
})
||、Js
async function query(data) {
const response = await fetch(
“http://172.10.32.234:3000/api/v1/prediction/e27198af-a44a-4482-8d23-76e8baba24f9”,
{
method: “POST”,