gy entertainment industry
- 9 followers
- Category: Entertainment
- | Follow
funny videos in 2023 मजेदार वीडियो धमाका चाइनीज माल में
Published: 1 year agoCategory:
- Entertainment
About:
Search & run commands
Search and command bar
Ctrl
.
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
import axios from "axios";
const leap = new Leap(process.env.API_KEY)
const status = checkStatus.status
console.log("Status: ", status)
trainingStatus = status;
// wait for 10 seconds before re-polling status
await new Promise((resolve) => setTimeout(resolve, 10000));
}
console.log("Training Status: " + trainingStatus)
// Now that we have a fine-tuned version of a model, we can generate images using it. Make sure subjectKeyword, ie. '@me' is in prompt
if (!prompt.includes(subjectKeyword)) {
console.log("Error: missing subjectKeyword " + subjectKeyword + " in prompt. Please add it and re-run.")
process.exit()
}
console.log("Image prompt: " + prompt)
console.log("Generating image...\nThis will take around 10 seconds\n")
const { data: image, error: imageError } = await leap.generate.generateImage({
prompt: prompt,
modelId: modelId,
numberOfImages: 4,
});
image.images.forEach((image) => {
console.log("Image ready: ", image.uri);
});
Please Login to comment on this video
- Video has no comments