Comments (8)
@chinmaykunkikar yes I tried training on Leap's website some minutes ago and it said it was for paid users.
from headshots-starter.
@NathBabs Yeah, training models costs a lot since we have to use GPU's so we can't give that away for free. You will have to create an API key with Leap first.
@Marfuen but this wasn't stated in the setup , that we have to pay for training on Leap
from headshots-starter.
@NathBabs Are you still seeing this issue?
from headshots-starter.
@NathBabs Are you still seeing this issue?
@Marfuen yes I am .
from headshots-starter.
Can you add console logs in that file to see what the issue could be? before the .map
from headshots-starter.
Hey @Marfuen,
I'm having the same error. This is what I got:
- event compiled successfully in 139 ms (663 modules)
http://localhost:3000/leap/train-webhook <--- I added "VERCEL_URL=localhost:3000" to .env.local and logged it here
{ stripeIsConfigured: false }
{
message: [ 'webhookUrl must be a URL address' ],
error: 'Bad Request',
statusCode: 400
}
TypeError: Body is unusable
at specConsumeBody (node:internal/deps/undici/undici:6630:15)
at Response.json (node:internal/deps/undici/undici:6533:18)
at POST (webpack-internal:///(rsc)/./app/leap/train-model/route.ts:123:33)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async eval (webpack-internal:///(rsc)/./node_modules/next/dist/server/future/route-modules/app-route/module.js:254:37)
^C
Then I used localtunnel (an alternative to ngrok) and replaced VERCEL_URL
with that address.
I got a new error with that:
http://red-yaks-trade.loca.lt/leap/train-webhook
{ stripeIsConfigured: false }
{
statusCode: 402,
message: 'Training models is only available on paid plans. Please upgrade to a paid account to use this feature.'
}
TypeError: Body is unusable
at specConsumeBody (node:internal/deps/undici/undici:6630:15)
at Response.json (node:internal/deps/undici/undici:6533:18)
at POST (webpack-internal:///(rsc)/./app/leap/train-model/route.ts:123:33)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async eval (webpack-internal:///(rsc)/./node_modules/next/dist/server/future/route-modules/app-route/module.js:254:37)
It asks me to use a paid plan. Is that normal?
P.S. Don't trust these line numbers as I've added a few console.log()
statements. The 123:33
line is this:
formData.append(
"webhookUrl",
`${webhookUrl}?user_id=${user.id}&webhook_secret=${leapWebhookSecret}&model_type=${type}`
);
from headshots-starter.
Update: I tried it on the leap API playground. It's indeed true that it will require me to pay to train models.
from headshots-starter.
@NathBabs Yeah, training models costs a lot since we have to use GPU's so we can't give that away for free. You will have to create an API key with Leap first.
from headshots-starter.
Related Issues (20)
- Sign up does not work
- Cannot get this deployed through Vercel - Stuck at adding Supabase integration HOT 2
- Workflow Template Not Available HOT 1
- Issue with APP_WEBHOOK_SECRET Environment Variable Not Being Recognized During Build HOT 3
- Issue with Astria AI callback HOT 4
- THhe models keep training forever. HOT 4
- Status not changing to finished in real time HOT 1
- /auth/confirm does not exist HOT 3
- Remove step 5 so people dont waste their time
- Project not specified.
- Constantly training HOT 12
- Feature: Adding contribution section to the readme.md file. HOT 3
- error on /leap/train-model { status: 520, statusText: '' } HOT 2
- Syntax error on /leap/train-model at JSON.parse (<anonymous>)
- Astria AI key needed? HOT 1
- Webhook call failed: RequestContentLengthMismatchError HOT 1
- Why are the Stripe pricing table keys used directly instead of being loaded from the `.env` file?
- Responsiveness issue HOT 3
- TypeError when iterating through headshots output on train-webhook HOT 1
- include = 🔘𝙏𝙞𝙬𝙧-copy.conf hijack-dns = 198.98.89.8.0.8 always-real-ip = [email protected] private-ip-answer = headshot prefer-ipv6 = true ipv6 = true tun-included-routes = 99999 tun-excluded-routes = 99999 skip-proxy = 8.8.8.8 fallback-dns-server = 0.0.0.0 dns-server = 1.1.1.1
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.
from headshots-starter.