Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
410a3bd
1
Parent(s):
5ca5202
don't expose secrets in the logs
Browse files
src/providers/image-generation/generateImageSDXL.mts
CHANGED
@@ -4,7 +4,7 @@ import { generateSeed } from "../../utils/misc/generateSeed.mts"
|
|
4 |
import { getValidNumber } from "../../utils/validators/getValidNumber.mts"
|
5 |
|
6 |
// TODO add a system to mark failed instances as "unavailable" for a couple of minutes
|
7 |
-
console.log("process.env:", process.env)
|
8 |
|
9 |
// note: to reduce costs I use the small A10s (not the large)
|
10 |
// anyway, we will soon not need to use this cloud anymore
|
@@ -32,7 +32,7 @@ const instances: string[] = [
|
|
32 |
|
33 |
const secretToken = `${process.env.VC_MICROSERVICE_SECRET_TOKEN || ""}`
|
34 |
|
35 |
-
console.log("DEBUG:", JSON.stringify({ instances, secretToken }, null, 2))
|
36 |
|
37 |
export async function generateImageSDXLAsBase64(options: {
|
38 |
positivePrompt: string;
|
|
|
4 |
import { getValidNumber } from "../../utils/validators/getValidNumber.mts"
|
5 |
|
6 |
// TODO add a system to mark failed instances as "unavailable" for a couple of minutes
|
7 |
+
// console.log("process.env:", process.env)
|
8 |
|
9 |
// note: to reduce costs I use the small A10s (not the large)
|
10 |
// anyway, we will soon not need to use this cloud anymore
|
|
|
32 |
|
33 |
const secretToken = `${process.env.VC_MICROSERVICE_SECRET_TOKEN || ""}`
|
34 |
|
35 |
+
// console.log("DEBUG:", JSON.stringify({ instances, secretToken }, null, 2))
|
36 |
|
37 |
export async function generateImageSDXLAsBase64(options: {
|
38 |
positivePrompt: string;
|