Skip to content
This repository has been archived by the owner on Oct 15, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ArsenChick committed Oct 14, 2023
2 parents ef60151 + 8d1cd9a commit a6922af
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frontend/MASSter-frontend/src/pages/add-prompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ export function AddAdvancedPromptCard() {
.refine(
(files) => ACCEPTED_VIDEO_TYPES.includes(files.type),
"Пока мы поддерживаем только .mp4 видеоролики :("
),
)
.optional(),
numImages: z.coerce.number().min(1).max(10)
});

Expand All @@ -193,7 +194,9 @@ export function AddAdvancedPromptCard() {
for (let file in data.inputImage) {
formData.append("input_image", file);
}
formData.append("video", data.video);
if (data.video) {
formData.append("video", data.video);
}
formData.append("status", "open");
formData.append("num_images", `${data.numImages}`);
pb.collection("text_generation_mvp")
Expand Down

0 comments on commit a6922af

Please sign in to comment.