mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-06 02:00:46 +00:00
fixed maybe styling on tutorial with no file being sent
This commit is contained in:
1 parent
3b987956a3
commit
e18e3c44da
3 files changed
+6
-2
No files matched your search
@@ -9,6 +9,8 @@ const MakeMultipartRequest = (endpoint = "", body: any) => {
|
||||
|
||||
formData.append('source', "file");
|
||||
|
||||
console.log("✅", Object.keys(body));
|
||||
|
||||
return fetch(formatUrl(endpoint), {
|
||||
method: 'POST',
|
||||
credentials: 'include',
|
||||
|
||||
@@ -32,6 +32,7 @@ export default function DevUpload(props: DevUploadProps) {
|
||||
|
||||
const handleFileChange = (event: any) => {
|
||||
const maybeFile = event.target.files[0];
|
||||
console.log("😈",maybeFile);
|
||||
const fileType = GetFileTypeByExtension(maybeFile?.name || "");
|
||||
|
||||
let uploadType = UploadType.Unknown;
|
||||
|
||||
@@ -168,7 +168,8 @@ export default function StudioTutorial(props: Props) {
|
||||
const sceneIsLoaded = sceneIsLoadedCount > 0 || sceneIsSaved;
|
||||
|
||||
const workingText = () => {
|
||||
if (compositing) return "Compositing"
|
||||
if (compositing) return "Compositing";
|
||||
else if (styling) return "Styling";
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -192,7 +193,7 @@ export default function StudioTutorial(props: Props) {
|
||||
EnqueueVST("",{
|
||||
creator_set_visibility: vstValues.visibility,
|
||||
enable_lipsync: true,
|
||||
input_file: compositeJobStatus?.maybe_result?.entity_token || "",
|
||||
input_file: compositeMediaToken || "",
|
||||
negative_prompt: vstValues.negPrompt,
|
||||
prompt: "A dog in a sunny field with lots of flowers",
|
||||
style: vstValues.sdModelToken,
|
||||
|
||||
Reference in new issue
Block a user