@zodic/shared 0.0.353 → 0.0.354
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/utils/faceSwapHelpers.ts +0 -11
package/package.json
CHANGED
package/utils/faceSwapHelpers.ts
CHANGED
|
@@ -183,17 +183,6 @@ export const sendRequest = async (
|
|
|
183
183
|
throw new Error(`PiAPI FaceSwap Error: Task failed - ${errorMsg}`);
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
// Ensure the task is in a valid state for creation
|
|
187
|
-
if (
|
|
188
|
-
data.data.status !== Status.Staged &&
|
|
189
|
-
data.data.status !== Status.Pending &&
|
|
190
|
-
data.data.status !== Status.Processing
|
|
191
|
-
) {
|
|
192
|
-
throw new Error(
|
|
193
|
-
`PiAPI FaceSwap Error: Unexpected task status - ${data.data.status}`
|
|
194
|
-
);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
186
|
return data;
|
|
198
187
|
} catch (err: any) {
|
|
199
188
|
if (
|