Spaces:
Running
Running
if parameter different than the stored value, keep it
Browse files
src/lib/components/community/reactions/Reactions.svelte
CHANGED
|
@@ -22,8 +22,6 @@
|
|
| 22 |
};
|
| 23 |
|
| 24 |
$: groupedReactions = groupReactionsByEmoji(reactions);
|
| 25 |
-
|
| 26 |
-
$: console.log(groupedReactions);
|
| 27 |
</script>
|
| 28 |
|
| 29 |
{#each groupedReactions as reaction}
|
|
|
|
| 22 |
};
|
| 23 |
|
| 24 |
$: groupedReactions = groupReactionsByEmoji(reactions);
|
|
|
|
|
|
|
| 25 |
</script>
|
| 26 |
|
| 27 |
{#each groupedReactions as reaction}
|
src/lib/components/generate/Response.svelte
CHANGED
|
@@ -36,7 +36,6 @@
|
|
| 36 |
}
|
| 37 |
|
| 38 |
generationStore.subscribe((value) => {
|
| 39 |
-
console.log(value);
|
| 40 |
generation = value;
|
| 41 |
})
|
| 42 |
|
|
|
|
| 36 |
}
|
| 37 |
|
| 38 |
generationStore.subscribe((value) => {
|
|
|
|
| 39 |
generation = value;
|
| 40 |
})
|
| 41 |
|
src/routes/generate/+page.svelte
CHANGED
|
@@ -18,13 +18,13 @@
|
|
| 18 |
|
| 19 |
let loading: boolean = false;
|
| 20 |
|
| 21 |
-
let form = generation?.form
|
| 22 |
model: data?.model ?? null,
|
| 23 |
inputs: "",
|
| 24 |
parameters: {
|
| 25 |
negative_prompt: ""
|
| 26 |
}
|
| 27 |
-
}
|
| 28 |
|
| 29 |
const handleSubmit = async () => {
|
| 30 |
if (loading) return
|
|
|
|
| 18 |
|
| 19 |
let loading: boolean = false;
|
| 20 |
|
| 21 |
+
let form = ((data?.model?.id && generation?.form?.model?.id && data?.model?.id !== generation?.form?.model?.id) || !generation?.form) ? {
|
| 22 |
model: data?.model ?? null,
|
| 23 |
inputs: "",
|
| 24 |
parameters: {
|
| 25 |
negative_prompt: ""
|
| 26 |
}
|
| 27 |
+
} : generation?.form
|
| 28 |
|
| 29 |
const handleSubmit = async () => {
|
| 30 |
if (loading) return
|