enzostvs HF Staff commited on
Commit
641a85e
·
1 Parent(s): 6cf6e03
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 is not safe for work." });
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
- <p className="text-white/70 font-semibold text-lg lg:text-xl">
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>