replicate / replicate-swift

Swift client for Replicate
https://replicate.com
Apache License 2.0
157 stars 33 forks source link

Cannot open result image or play result audio #57

Closed BudFuture closed 10 months ago

BudFuture commented 10 months ago

Hi. I tried to use 2 model but I cannot reach these result:

  1. stability-ai/stable-diffusion: The result is: https://replicate.delivery/mgxm/50fcac81-865d-499e-81ac-49de0cb79264/out-0.png but I cannot open it in a website or parse it to imageview. The error is: This site can’t be reachedreplicate. Delivery refused to connect.

  2. meta/musicgen: I got the result audio url: https://replicate.delivery/pbxt/F7Eg1oM138pGNJpeb0N9d2602RfS4jBSEIAXUHPfQNl2nzhjA/out.wav but I cannot play it in safari or avplayer in iphone.

Any idea? Thanks

mattt commented 10 months ago

Hi @BudFuture. In the first case, the image loads for me in Safari, so it sounds like an issue with your image view code or project settings (check your network entitlements, perhaps?) In the second case, predictions created through the API are deleted after an hour, so the resource may no longer be available.