Closed robot007 closed 2 weeks ago
I tested the backend API with the following CURL and did not found issues.
========== echo "Predict 1 tfa: SC2.1 text to image" curl -X POST -H "Authorization: Bearer [token]" -H "Content-Type: application/json" \ -d '{"model": "weai-software/tfa1", "input": { "seed": -1, "positive": "blue color, a wabi sabi style bathroom room", "workflow": 5, "style_num": 1 } }' \ https://weai12-fdp3xijewa-uc.a.run.app/predict
echo "" echo "Predict 2 tfa: SC1.1 image to image" curl -X POST -H "Authorization: Bearer [token]" -H "Content-Type: application/json" \ -d '{"model": "weai-software/tfa1", "input": { "seed": -1, "positive": "blue color, a modern living room", "workflow": 1, "style_num": 2 , "input_file": "https://firebasestorage.googleapis.com/v0/b/storage-3533f.appspot.com/o/images%2Fbathroom1.png?alt=media&token=d6f265d2-358f-4aee-8259-1b933ebaf6c0" } }' \ https://weai12-fdp3xijewa-uc.a.run.app/predict
echo "Predict 3: FD 1 furniture design" curl -X POST -H "Authorization: Bearer [token]" -H "Content-Type: application/json" \ -d '{"model": "weai-software/tfa1", "input": { "workflow":10, "seed":-1, "positive": "yellow armchair with shape of pineapple and texture of pyramid lattice, spongy texture with pointy shape, green leaves on top, white background, highly detailed, photorealistic rendering, 8k, raytracing, ultra realistic", "input_file":"https://firebasestorage.googleapis.com/v0/b/storage-3533f.appspot.com/o/images%2FFD1.1_scribble.png?alt=media&token=6630aa77-5948-4d4f-83bd-4370a91965cb", "input_mask":"https://firebasestorage.googleapis.com/v0/b/storage-3533f.appspot.com/o/images%2FFD1.1_mask.png?alt=media&token=3e8e2df9-8617-4aae-baed-a013a0464897"} }' \ https://weai12-fdp3xijewa-uc.a.run.app/predict
Not backend issue
Frontend often has Unexpected Token error