Spaces:
Runtime error
Runtime error
typo
Browse files
app/api/route.ts
CHANGED
|
@@ -20,7 +20,7 @@ export async function POST(
|
|
| 20 |
const findStyle = list_styles.find((item) => item.name === style)
|
| 21 |
|
| 22 |
const textIsNSFW = await isTextNSFW(inputs, global_headers)
|
| 23 |
-
if (textIsNSFW) return Response.json({ status: 401, ok: false, message: "Prompt
|
| 24 |
|
| 25 |
const response = await fetch(`${process.env.API_SDXL_URL}`, {
|
| 26 |
method: 'POST',
|
|
|
|
| 20 |
const findStyle = list_styles.find((item) => item.name === style)
|
| 21 |
|
| 22 |
const textIsNSFW = await isTextNSFW(inputs, global_headers)
|
| 23 |
+
if (textIsNSFW) return Response.json({ status: 401, ok: false, message: "Prompt doesn’t work, try another prompt" });
|
| 24 |
|
| 25 |
const response = await fetch(`${process.env.API_SDXL_URL}`, {
|
| 26 |
method: 'POST',
|
components/main/collections/collection.tsx
CHANGED
|
@@ -111,9 +111,7 @@ export const Collection: React.FC<Props> = ({
|
|
| 111 |
</div>
|
| 112 |
</div>
|
| 113 |
) : (
|
| 114 |
-
<
|
| 115 |
-
Waiting for validation.
|
| 116 |
-
</p>
|
| 117 |
)}
|
| 118 |
<AiFillEyeInvisible className="text-white/70 text-2xl" />
|
| 119 |
</div>
|
|
|
|
| 111 |
</div>
|
| 112 |
</div>
|
| 113 |
) : (
|
| 114 |
+
<span />
|
|
|
|
|
|
|
| 115 |
)}
|
| 116 |
<AiFillEyeInvisible className="text-white/70 text-2xl" />
|
| 117 |
</div>
|