leap-sdk-deprecated's People
leap-sdk-deprecated's Issues
How to get the status of training jobs using the getTrainingJob function?
How to get the status of training jobs using the getTrainingJob function?
How can I know the status without the web hook url?
Link on which the function is mentioned - https://docs.tryleap.ai/sdk/training-models
Music api is returning null - not sure what I'm doing wrong
export async function POST(req: Request) {
// Removed the API key for this post but it's setup in my instance correctly.
const leap = new Leap(apiKey);
if (!prompt || prompt.length === 0 || !apiKey) {
console.log("Invalid request. Check key and prompt.")
return;
}
if (req.method === 'POST') {
try {
const { data, error } = await leap.music.submitMusicGenerationJob({
prompt: "A suspenseful orchestral piece for a thriller chase scene.",
duration: 30,
});
if (error) {
return {
status: 500,
body: JSON.stringify({ message: 'Internal Server Error' }),
};
}
return {
status: 200,
body: JSON.stringify(data),
};
} catch (err) {
console.error(err);
return {
status: 500,
body: JSON.stringify({ message: 'Internal Server Error' }),
};
}
} else {
return {
status: 405,
headers: { Allow: 'POST' },
body: 'Method Not Allowed',
};
}
}
Public models
Thanks, owners for this SDK.
Could you please help with short names for the function to get the correct names to setup modelId as in the example by default:
leap.usePublicModel('sd-1.5');
Here we can setup "sd-1.5" or "future-diffusion"Is it correct?
How to set up by default a realistic vision?
it possible into:
await leap.generate.generateImage({ modelId: '37d42ae9-5f5f-4399-b60b-014d35e762a5' ... )}
but want to use it in the default function.
now I'm getting if provide rv-2.0 as argumets
{ statusCode: 400, message: 'Invalid modelId', error: 'Bad Request' }
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.