mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
re-enable prompt boxes on failure; todo - better exception handling
This commit is contained in:
1 parent
7eddabd79e
commit
ccdac19fc4
2 files changed
+14
No files matched your search
@@ -193,6 +193,13 @@ export const PromptBoxImage = ({
|
||||
const handleEnqueue = async () => {
|
||||
setIsEnqueueing(true);
|
||||
|
||||
setTimeout(() => {
|
||||
// TODO(bt,2025-05-08): This is a hack so we don't accidentally wind up with a permanently disabled prompt box if
|
||||
// the backend hangs on a given request.
|
||||
console.debug("Turn off blocking of prompt box...");
|
||||
setIsEnqueueing(false);
|
||||
}, 10000);
|
||||
|
||||
const modelName = getModelByName(model);
|
||||
|
||||
const generateResponse = await EnqueueTextToImage({
|
||||
|
||||
@@ -183,6 +183,13 @@ export const PromptBoxVideo = ({
|
||||
const handleEnqueue = async () => {
|
||||
setIsEnqueueing(true);
|
||||
|
||||
setTimeout(() => {
|
||||
// TODO(bt,2025-05-08): This is a hack so we don't accidentally wind up with a permanently disabled prompt box if
|
||||
// the backend hangs on a given request.
|
||||
console.debug("Turn off blocking of prompt box...");
|
||||
setIsEnqueueing(false);
|
||||
}, 10000);
|
||||
|
||||
const generateResponse = await FalKlingImageToVideo({
|
||||
image_media_token: referenceImages[0].mediaToken,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user