Skip to content

Commit

Permalink
Revert missing dependencies image ai workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
gvdongen committed Jan 9, 2025
1 parent 8d3581f commit 4e12a03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
"scripts": {
"build": "tsc --noEmitOnError",
"app-dev": "ts-node-dev --watch ./src --respawn --transpile-only src/app.ts",
"stable-diffusion-service": "ts-node-dev --watch ./src --respawn --transpile-only src/stable-diffusion/stable_diffusion.ts"
"stable-diffusion-service": "ts-node-dev --watch ./src --respawn --transpile-only src/stable_diffusion.ts"
},
"dependencies": {
"@restatedev/restate-sdk": "^1.4.0",
"node-fetch": "^3.3.2",
"axios": "^1.6.7",
"axios-retry": "^4.0.0",
"jimp": "^0.22.10",
"puppeteer": "^21.9.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async function callStableDiffusion(ctx: restate.Context, imgOutputPath: string,

await ctx.run(async () => {
// invoke the stable diffusion service with our awakeable as callback
await fetch("http://localhost:5050/generate", {
await axios.post("http://localhost:5050/generate", {
method: "POST",
headers: {
"Content-Type": "application/json"
Expand Down

0 comments on commit 4e12a03

Please sign in to comment.