Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
set instance prompt on select new model
Browse files- Dockerfile +1 -1
- src/routes/generate/+page.svelte +4 -1
Dockerfile
CHANGED
@@ -21,7 +21,7 @@ RUN chmod +x entrypoint.sh
|
|
21 |
EXPOSE 3000
|
22 |
|
23 |
# create symlink for /data/uploads to /static/data/uploads
|
24 |
-
|
25 |
|
26 |
# Start the application
|
27 |
ENTRYPOINT ["/usr/src/app/entrypoint.sh"]
|
|
|
21 |
EXPOSE 3000
|
22 |
|
23 |
# create symlink for /data/uploads to /static/data/uploads
|
24 |
+
RUN mkdir -p ./static/data && ln -s /data/uploads ./static/data/uploads
|
25 |
|
26 |
# Start the application
|
27 |
ENTRYPOINT ["/usr/src/app/entrypoint.sh"]
|
src/routes/generate/+page.svelte
CHANGED
@@ -63,7 +63,10 @@
|
|
63 |
<Autocomplete
|
64 |
value={form?.model}
|
65 |
defaultModels={data?.models?.cards}
|
66 |
-
onChange={(model) =>
|
|
|
|
|
|
|
67 |
/>
|
68 |
</div>
|
69 |
<div>
|
|
|
63 |
<Autocomplete
|
64 |
value={form?.model}
|
65 |
defaultModels={data?.models?.cards}
|
66 |
+
onChange={(model) => {
|
67 |
+
form.model = model
|
68 |
+
if (model?.instance_prompt) form.inputs = model.instance_prompt
|
69 |
+
}}
|
70 |
/>
|
71 |
</div>
|
72 |
<div>
|