mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-06 02:00:46 +00:00
sdinferencepanel shows inference list
This commit is contained in:
1 parent
d2f9d4f5cf
commit
8c49568331
1 file changed
+14
-2
+14
-2
@@ -26,6 +26,7 @@ import {
|
||||
import { FrontendInferenceJobType } from "@storyteller/components/src/jobs/InferenceJob";
|
||||
import { SessionSubscriptionsWrapper } from "@storyteller/components/src/session/SessionSubscriptionsWrapper";
|
||||
import PremiumLock from "components/PremiumLock";
|
||||
import InferenceJobsList from "components/layout/InferenceJobsList";
|
||||
|
||||
interface SdInferencePanelProps {
|
||||
sessionSubscriptionsWrapper: SessionSubscriptionsWrapper;
|
||||
@@ -277,13 +278,20 @@ function SdInferencePanel({
|
||||
);
|
||||
}
|
||||
} else if (EnqueueImageGenIsError(response)) {
|
||||
console.log("error");
|
||||
console.log("error",response);
|
||||
}
|
||||
setIsEnqueuing(false);
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
const failures = (fail = "") => {
|
||||
switch (fail) {
|
||||
default:
|
||||
return "Uknown failure";
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<Panel padding={true}>
|
||||
<h4 className="fw-semibold mb-4">Generate an Image</h4>
|
||||
@@ -443,7 +451,7 @@ function SdInferencePanel({
|
||||
</Accordion.Item>
|
||||
</Accordion>
|
||||
|
||||
<div className="d-flex gap-2 justify-content-end mt-4">
|
||||
<div className="d-flex gap-2 justify-content-end mt-4 mb-3">
|
||||
<Button
|
||||
{...{
|
||||
label: "Clear All",
|
||||
@@ -460,6 +468,10 @@ function SdInferencePanel({
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
<InferenceJobsList {...{
|
||||
failures,
|
||||
jobType: FrontendInferenceJobType.ImageGeneration
|
||||
}} />
|
||||
</Panel>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user