Spaces:
Runtime error
Runtime error
fix build
Browse files- src/app/page.tsx +4 -12
src/app/page.tsx
CHANGED
@@ -35,7 +35,7 @@ export default function Page() {
|
|
35 |
);
|
36 |
}
|
37 |
|
38 |
-
|
39 |
const [prompt, setPrompt] = useState("");
|
40 |
const [image, setImage] = useState("");
|
41 |
const [loading, setLoading] = useState(false);
|
@@ -122,7 +122,7 @@ export function Txt2img() {
|
|
122 |
);
|
123 |
}
|
124 |
|
125 |
-
|
126 |
const [prompt, setPrompt] = useState<File>();
|
127 |
const [image, setImage] = useState("");
|
128 |
const [loading, setLoading] = useState(false);
|
@@ -152,20 +152,12 @@ export function Img2img() {
|
|
152 |
|
153 |
return (
|
154 |
<Card className="w-full max-w-[500px]">
|
155 |
-
<CardHeader>
|
156 |
-
Comfy Deploy - Vector Line Art Tool
|
157 |
-
<div className="text-xs text-foreground opacity-50">
|
158 |
-
Lora -{" "}
|
159 |
-
<a href="https://civitai.com/models/256144/stick-line-vector-illustration">
|
160 |
-
stick-line-vector-illustration
|
161 |
-
</a>
|
162 |
-
</div>
|
163 |
-
</CardHeader>
|
164 |
<CardContent>
|
165 |
<form
|
166 |
className="grid w-full items-center gap-1.5"
|
167 |
onSubmit={(e) => {
|
168 |
-
e.preventDefault()
|
169 |
if (loading) return;
|
170 |
if (!prompt) return;
|
171 |
|
|
|
35 |
);
|
36 |
}
|
37 |
|
38 |
+
function Txt2img() {
|
39 |
const [prompt, setPrompt] = useState("");
|
40 |
const [image, setImage] = useState("");
|
41 |
const [loading, setLoading] = useState(false);
|
|
|
122 |
);
|
123 |
}
|
124 |
|
125 |
+
function Img2img() {
|
126 |
const [prompt, setPrompt] = useState<File>();
|
127 |
const [image, setImage] = useState("");
|
128 |
const [loading, setLoading] = useState(false);
|
|
|
152 |
|
153 |
return (
|
154 |
<Card className="w-full max-w-[500px]">
|
155 |
+
<CardHeader>Comfy Deploy - Scribble to Anime Girl</CardHeader>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
<CardContent>
|
157 |
<form
|
158 |
className="grid w-full items-center gap-1.5"
|
159 |
onSubmit={(e) => {
|
160 |
+
e.preventDefault();
|
161 |
if (loading) return;
|
162 |
if (!prompt) return;
|
163 |
|