Giter VIP home page Giter VIP logo

Comments (10)

dalelane avatar dalelane commented on June 11, 2024

@bh26 I'm happy to help investigate if I can. The easiest way for me to see what is happening would be if you could send me a copy of your project (my email address is on my profile page) so I can try it for myself.

from ml4k-ai-extension.

MrMazzone avatar MrMazzone commented on June 11, 2024

Hi @bh26 , I believe it is due to an old extension file in that .aia file example on the Github page. I will update. Can you download this project below, paste your key into the "ML4K1" component's "Key" property on Designer, and test to see if it works? Don't forget to make sure your model is trained.

Download here: https://1drv.ms/u/s!Ap8cS8TATIfLuqo2fBJmCfGze5rCTA?e=lvcFFl

from ml4k-ai-extension.

bh26 avatar bh26 commented on June 11, 2024

Thanks Dale, I sent you the url.
Thanks Joe, I downloaded and ran it on my mobile but I got the same error.
Actually I had found that for the project it was possible to get an URL and pass this url to the import extension from url box in AI.
Just as an information, I created an unmanaged account on ML4K, and followed the steps on IBM watson.
Actually the API key I put in AI was the one provided by IBM to ML4K. I hope that is correct.
Bernard

from ml4k-ai-extension.

MrMazzone avatar MrMazzone commented on June 11, 2024

Hi Bernard @bh26
That is your problem. You need to provide your project key, not the IBM Watson API key. The extension needs a way to tie your App Inventor project extension with your Machine Learning for Kids project/ML model, so there is a unique project key.

It can be found in the URL you described. See highlighted section.
image

You can also easily see it here in the Python project section:
image

Essentially, the system is designed so you do not need to provide the key; unless you use my example .aia files. If you import the extension with the URL it will automatically add the key and you do not need to add it on Designer or Blocks in App Inventor.

from ml4k-ai-extension.

bh26 avatar bh26 commented on June 11, 2024

AAAAH!
I thought there was something like that but I thought since the extension was already connected to the project via the URL the API key in the blocks was not important. But without an API key in the designer it does not work with error "no API key".
And the documentation (?) is not very clear on that.
Anyway, that works quite well.
Actually, in which case the Extension importing via the URL makes the API key in the Designer irrelevant, if any?
Thanks,

from ml4k-ai-extension.

MrMazzone avatar MrMazzone commented on June 11, 2024

@bh26 Correct, importing the URL makes the API key in Designer irrelevant. Only when you come here to the GitHub page does it get confusing when looking at my examples.

I'll add some documentation to clarify getting the project key to use the examples.

from ml4k-ai-extension.

bh26 avatar bh26 commented on June 11, 2024

OK, but how to overcome the "No API key" error message? or should we not care?

from ml4k-ai-extension.

MrMazzone avatar MrMazzone commented on June 11, 2024

@bh26 That should only happen when using the .aix extension file from this Github page when you do not provide the key. When you use the URL to import the extension from the Machine Learning for Kids site, it automatically adds the key for you.

Were you getting this error from the example project file, .aix from GitHub, or URL added extension?

from ml4k-ai-extension.

bh26 avatar bh26 commented on June 11, 2024

from ml4k-ai-extension.

MrMazzone avatar MrMazzone commented on June 11, 2024

Thanks for the follow-up, Bernard. We will continue to make the extension have fewer tricks and more pure magic! 😉

Unless there is anything else @bh26 , I am going to have @kylecorry31 close this issue.

from ml4k-ai-extension.

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.