re-enable prompt boxes on failure; todo - better exception handling

This commit is contained in:
Brandon Thomas committed 2025-05-29 05:27:31 -04:00
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,
});