Spaces:
Runtime error
Runtime error
waiting for validation text
Browse files
app/api/route.ts
CHANGED
@@ -38,8 +38,8 @@ export async function POST(
|
|
38 |
const base64Image = res.images[0];
|
39 |
const blob = await fetch(`data:image/png;base64,${base64Image}`).then((r) => r.blob());
|
40 |
|
41 |
-
const imageIsNSFW = await isImageNSFW(blob, global_headers)
|
42 |
-
if (imageIsNSFW) return Response.json({ status: 401, ok: false, message: "Image is not safe for work." });
|
43 |
|
44 |
const name = Date.now() + `-${inputs.replace(/[^a-zA-Z0-9]/g, '-').toLowerCase()}`
|
45 |
const { ok, message } = await UploaderDataset(blob, name)
|
|
|
38 |
const base64Image = res.images[0];
|
39 |
const blob = await fetch(`data:image/png;base64,${base64Image}`).then((r) => r.blob());
|
40 |
|
41 |
+
// const imageIsNSFW = await isImageNSFW(blob, global_headers)
|
42 |
+
// if (imageIsNSFW) return Response.json({ status: 401, ok: false, message: "Image is not safe for work." });
|
43 |
|
44 |
const name = Date.now() + `-${inputs.replace(/[^a-zA-Z0-9]/g, '-').toLowerCase()}`
|
45 |
const { ok, message } = await UploaderDataset(blob, name)
|
components/main/collections/collection.tsx
CHANGED
@@ -73,8 +73,11 @@ export const Collection: React.FC<Props> = ({
|
|
73 |
)}
|
74 |
/>
|
75 |
{!collection.is_visible && (
|
76 |
-
<div className="flex items-center justify-end px-5 py-6">
|
77 |
-
<
|
|
|
|
|
|
|
78 |
</div>
|
79 |
)}
|
80 |
</motion.div>
|
|
|
73 |
)}
|
74 |
/>
|
75 |
{!collection.is_visible && (
|
76 |
+
<div className="flex items-center justify-end px-5 py-6 gap-2">
|
77 |
+
<p className="text-white/70 font-semibold text-lg lg:text-xl">
|
78 |
+
Waiting for validation.
|
79 |
+
</p>
|
80 |
+
<AiFillEyeInvisible className="text-white/70 text-2xl" />
|
81 |
</div>
|
82 |
)}
|
83 |
</motion.div>
|