mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-06 02:00:46 +00:00
Stylization gets 401 need credentials to be copied over to cor's based browser.
This commit is contained in:
1 parent
d17cc96cd9
commit
cc53687247
2 files changed
+9
-3
No files matched your search
@@ -369,6 +369,7 @@ export class APIManager {
|
||||
const data = {
|
||||
uuid_idempotency_token: uuid,
|
||||
style: style,
|
||||
input_file: media_token,
|
||||
prompt: positive_prompt,
|
||||
negative_prompt: negative_prompt,
|
||||
trim_start_millis: 0,
|
||||
@@ -376,14 +377,17 @@ export class APIManager {
|
||||
enable_lipsync: true,
|
||||
creator_set_visibility: visibility
|
||||
}
|
||||
console.log(JSON.stringify(data))
|
||||
|
||||
const json_data = JSON.stringify(data)
|
||||
|
||||
const response = await fetch(`${this.baseUrl}/v1/video/enqueue_vst`, {
|
||||
method: "POST",
|
||||
credentials: "include",
|
||||
headers: {
|
||||
Accept: "application/json",
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify(data),
|
||||
body: json_data,
|
||||
});
|
||||
|
||||
if (!response.ok) {
|
||||
|
||||
@@ -327,7 +327,9 @@ class Editor {
|
||||
ArtStyle.Anime2_5D,
|
||||
"((masterpiece, best quality, 8K, detailed)), colorful, epic, fantasy, (fox, red fox:1.2), no humans, 1other, ((koi pond)), outdoors, pond, rocks, stones, koi fish, ((watercolor))), lilypad, fish swimming around.",
|
||||
"",
|
||||
Visibility.Public)
|
||||
Visibility.Public).catch(error=> {
|
||||
console.log(error);
|
||||
});
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user