Coder Social home page Coder Social logo

Comments (8)

NathBabs avatar NathBabs commented on August 24, 2024 1

@chinmaykunkikar yes I tried training on Leap's website some minutes ago and it said it was for paid users.

@Marfuen

from headshots-starter.

NathBabs avatar NathBabs commented on August 24, 2024 1

@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.

Marfuen avatar Marfuen commented on August 24, 2024

@NathBabs Are you still seeing this issue?

from headshots-starter.

NathBabs avatar NathBabs commented on August 24, 2024

@NathBabs Are you still seeing this issue?

@Marfuen yes I am .

Screenshot_20231009_210224_Chrome

from headshots-starter.

Marfuen avatar Marfuen commented on August 24, 2024

Can you add console logs in that file to see what the issue could be? before the .map

from headshots-starter.

chinmaykunkikar avatar chinmaykunkikar commented on August 24, 2024

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.

chinmaykunkikar avatar chinmaykunkikar commented on August 24, 2024

Update: I tried it on the leap API playground. It's indeed true that it will require me to pay to train models.

image

from headshots-starter.

Marfuen avatar Marfuen commented on August 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.