Spaces:
Running
Running
remove unused props
Browse files
Dockerfile
CHANGED
@@ -15,7 +15,7 @@ RUN npm install
|
|
15 |
# Copy the rest of the application files to the container
|
16 |
COPY . .
|
17 |
|
18 |
-
# Build the
|
19 |
RUN npm run build
|
20 |
|
21 |
# Expose the application port (assuming your app runs on port 3000)
|
|
|
15 |
# Copy the rest of the application files to the container
|
16 |
COPY . .
|
17 |
|
18 |
+
# Build the Svelte Kit application for production
|
19 |
RUN npm run build
|
20 |
|
21 |
# Expose the application port (assuming your app runs on port 3000)
|
src/lib/components/text-generation/Form.svelte
CHANGED
@@ -5,7 +5,6 @@
|
|
5 |
import Toggle from "$lib/components/Toggle.svelte";
|
6 |
import { TEXT_GENERATIONS } from "$lib/utils/models";
|
7 |
|
8 |
-
export let loading: boolean;
|
9 |
export let form: Record<string, any>;
|
10 |
export let onForm: (form: Record<string, any>) => void;
|
11 |
</script>
|
|
|
5 |
import Toggle from "$lib/components/Toggle.svelte";
|
6 |
import { TEXT_GENERATIONS } from "$lib/utils/models";
|
7 |
|
|
|
8 |
export let form: Record<string, any>;
|
9 |
export let onForm: (form: Record<string, any>) => void;
|
10 |
</script>
|
src/routes/text-generation/+page.svelte
CHANGED
@@ -39,7 +39,7 @@
|
|
39 |
|
40 |
<main class="min-h-screen w-full grid grid-cols-2">
|
41 |
<div class="p-10 w-full flex flex-col gap-6">
|
42 |
-
<Form form={form}
|
43 |
<div>
|
44 |
<button
|
45 |
class="bg-gradient-to-r from-slate-900/50 to-slate-900 border border-slate-800/40 text-white rounded-lg text-base transition-all duration-200 leading-relaxed outline-none relative py-3 px-6"
|
|
|
39 |
|
40 |
<main class="min-h-screen w-full grid grid-cols-2">
|
41 |
<div class="p-10 w-full flex flex-col gap-6">
|
42 |
+
<Form form={form} onForm={onchange} />
|
43 |
<div>
|
44 |
<button
|
45 |
class="bg-gradient-to-r from-slate-900/50 to-slate-900 border border-slate-800/40 text-white rounded-lg text-base transition-all duration-200 leading-relaxed outline-none relative py-3 px-6"
|