Spaces:
Paused
Paused
Update src/app/interface/panel/index.tsx
Browse files
src/app/interface/panel/index.tsx
CHANGED
@@ -92,7 +92,7 @@ export function Panel({
|
|
92 |
}
|
93 |
|
94 |
let newRendered: RenderedScene
|
95 |
-
|
96 |
|
97 |
newRendered = await newRender({
|
98 |
prompt: cacheInvalidationHack + " " + prompt,
|
@@ -102,14 +102,16 @@ export function Panel({
|
|
102 |
// TODO: here we never reset the revision, so only the first user
|
103 |
// comic will be cached (we should fix that later)
|
104 |
withCache: revision === 0,
|
|
|
105 |
})
|
106 |
-
|
107 |
// "Failed to load the panel! Don't worry, we are retrying..")
|
108 |
newRendered = await newRender({
|
109 |
prompt: cacheInvalidationHack + " " + prompt,
|
110 |
width,
|
111 |
height,
|
112 |
withCache,
|
|
|
113 |
})
|
114 |
}
|
115 |
|
@@ -168,6 +170,7 @@ export function Panel({
|
|
168 |
width,
|
169 |
height,
|
170 |
withCache: false,
|
|
|
171 |
})
|
172 |
setRendered(panelId, newAttempt)
|
173 |
} catch (err) {
|
|
|
92 |
}
|
93 |
|
94 |
let newRendered: RenderedScene
|
95 |
+
|
96 |
|
97 |
newRendered = await newRender({
|
98 |
prompt: cacheInvalidationHack + " " + prompt,
|
|
|
102 |
// TODO: here we never reset the revision, so only the first user
|
103 |
// comic will be cached (we should fix that later)
|
104 |
withCache: revision === 0,
|
105 |
+
renderingEngine: 'FAL_AI'
|
106 |
})
|
107 |
+
if (newRendered.status === "error") {
|
108 |
// "Failed to load the panel! Don't worry, we are retrying..")
|
109 |
newRendered = await newRender({
|
110 |
prompt: cacheInvalidationHack + " " + prompt,
|
111 |
width,
|
112 |
height,
|
113 |
withCache,
|
114 |
+
renderingEngine: 'INFERENCE_API'
|
115 |
})
|
116 |
}
|
117 |
|
|
|
170 |
width,
|
171 |
height,
|
172 |
withCache: false,
|
173 |
+
renderingEngine: 'INFERENCE_API'
|
174 |
})
|
175 |
setRendered(panelId, newAttempt)
|
176 |
} catch (err) {
|