# Teachable Machine + Web API

**URL:** <https://community.thunkable.com/t/teachable-machine-web-api/587646>\
**Category:** Questions about Thunkable X\
**Tags:** webapi\
**Created:** [May 24, 2020, 5:01am UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646 "2020-05-24T05:01:30Z")\
**Posts on this page:** 18\
**Page:** 2

<div class="post-metadata">

**Author:** ![anikathescientist](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@anikathescientist](https://community.thunkable.com/u/anikathescientist)\
**Post date:** [April 3, 2021, 4:40am UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/23 "2021-04-03T04:40:19Z")

</div>

Please share the tutorial! I need it because I’m kind of clueless about tensorflow and I need to incorporate this into my thunkable app fast! Please share the tutorial!!!

---

<div class="post-metadata">

**Author:** ![anikathescientist](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@anikathescientist](https://community.thunkable.com/u/anikathescientist)\
**Post date:** [April 3, 2021, 4:41am UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/24 "2021-04-03T04:41:00Z")

</div>

And I understand this conversation was around a year ago, but please, I need help!

---

<div class="post-metadata">

**Author:** ![Sofia](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sofia/32/50160_2.png) [@Sofia](https://community.thunkable.com/u/Sofia)\
**Post date:** [April 4, 2021, 7:28pm UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/25 "2021-04-04T19:28:41Z")

</div>

To everyone who’s been waiting on a response… this is it!!! I made into a 3 part tutorial. It took way longer than I thought but here its 😃

You can follow part 1 here → [Design and train your Machine Learning Model with Teachable Machine — Thunkable Tutorial | by Sofía Galán | Apr, 2021 | Medium](https://sogalanbat.medium.com/design-and-train-your-machine-learning-model-with-teachable-machine-thunkable-tutorial-dc3b6d5582a2)

If you have any feedback, let me know! 🙂

Sofia

---

<div class="post-metadata">

**Author:** ![anikathescientist](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@anikathescientist](https://community.thunkable.com/u/anikathescientist)\
**Post date:** [April 5, 2021, 1:49pm UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/26 "2021-04-05T13:49:22Z")

</div>

OH MY GOSH!!! I HAVE TO SAY THANK YOU SO MUCCHHHH!!! I’LL LOOK INTO IT AND SEE WHAT HAPPENS!!

P.s. thank you sooooooooooooooooooooooooooooooooooooooooooooooooo much for your reply; normally people don’t reply but THANK YOU THANK YOU THANK YOU!!!

---

<div class="post-metadata">

**Author:** ![anikathescientist](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@anikathescientist](https://community.thunkable.com/u/anikathescientist)\
**Post date:** [April 5, 2021, 2:03pm UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/27 "2021-04-05T14:03:35Z")

</div>

B.T.W, you were right about the beginner thing in your document. I sincerely don’t mean to bother you (EXTREMELY SORRY ABOUT THIS) but I’m an 11 year old 😅(surprise!) so it’s a BIITT hard to wrap my head around these things… I hate to ask this from you, but do you mind making a video tutorial, or simply explaining the hard parts in these comments? I AM SO SORRY to annoy you with this kind of request, and I don’t mind if this can’t be done, it’s just that it’s a LITTLE hard for me to understand your tutorial. I will definitely use it if you can’t simplify, it’s just a TINY request in case you have enough time… again, REALLY sorry about this​:sweat:😓😓😓😓😓😓😓

---

<div class="post-metadata">

**Author:** ![Sofia](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sofia/32/50160_2.png) [@Sofia](https://community.thunkable.com/u/Sofia)\
**Post date:** [April 5, 2021, 2:22pm UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/28 "2021-04-05T14:22:50Z")

</div>

Sure, I can help you through here no problem! Try to follow it as much as you can and tell me on which step do you get lost. Also, try to look at the documentation or even a video explaining the technology behind it: python, docker, and cloud run. They explain it better than I ever could. So, give it a try and I’ll be here haha

---

<div class="post-metadata">

**Author:** ![anikathescientist](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@anikathescientist](https://community.thunkable.com/u/anikathescientist)\
**Post date:** [April 6, 2021, 7:44am UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/29 "2021-04-06T07:44:42Z")

</div>

Thank you!!🥰

---

<div class="post-metadata">

**Author:** ![anikathescientist](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@anikathescientist](https://community.thunkable.com/u/anikathescientist)\
**Post date:** [April 6, 2021, 8:07am UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/30 "2021-04-06T08:07:05Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/f/4f405339ed2d2049fae0779cb3a420fbecb64b5f.jpeg)

First question! You said you used vscode in the tutorial, but I actually use python, or is that a part of python? Um, you can kind of see the confusion! So basically, my question is what is a virtual environment, vscode and how can I do this\*?

\*Should I use Jupyter Notebook or something?

Any help appreciated greatly!

---

<div class="post-metadata">

**Author:** ![Sofia](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sofia/32/50160_2.png) [@Sofia](https://community.thunkable.com/u/Sofia)\
**Post date:** [April 6, 2021, 2:18pm UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/31 "2021-04-06T14:18:58Z")

</div>

There is this channel in YT explaining how to code in python, the host covers virtual environments and vscode while using python for mac and PC. Check his videos out, he is one of the best! → [https://www.youtube.com/channel/UCCezIgC97PvUuR4\_gbFUs5g](https://www.youtube.com/channel/UCCezIgC97PvUuR4_gbFUs5g)

I mean this tutorial sadly it involves coding. I couldn’t go around it, to be honest. About your questions, as I said before look for Youtube videos and resource like that, that might facilitate the learning curve. It is difficult, don’t give up so easily.

---

<div class="post-metadata">

**Author:** ![anikathescientist](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@anikathescientist](https://community.thunkable.com/u/anikathescientist)\
**Post date:** [April 6, 2021, 3:26pm UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/32 "2021-04-06T15:26:11Z")

</div>

Alright! Thank you so much

---

<div class="post-metadata">

**Author:** ![anikathescientist](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@anikathescientist](https://community.thunkable.com/u/anikathescientist)\
**Post date:** [April 12, 2021, 9:51am UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/34 "2021-04-12T09:51:41Z")

</div>

I need help with docker. Where should I run docker-build and docker-run? My virtual environment?

---

<div class="post-metadata">

**Author:** ![Sofia](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sofia/32/50160_2.png) [@Sofia](https://community.thunkable.com/u/Sofia)\
**Post date:** [April 12, 2021, 2:18pm UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/35 "2021-04-12T14:18:50Z")

</div>

you need to open you terminal, navigate to the folder containing the docker file and first build your container and afterwards just run it 🙂

---

<div class="post-metadata">

**Author:** ![anikathescientist](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@anikathescientist](https://community.thunkable.com/u/anikathescientist)\
**Post date:** [April 12, 2021, 3:16pm UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/36 "2021-04-12T15:16:43Z")

</div>

Okay! Thank you so much! I’ll try it out😁

---

<div class="post-metadata">

**Author:** ![bob.h](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@bob.h](https://community.thunkable.com/u/bob.h)\
**Post date:** [April 15, 2021, 4:27pm UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/37 "2021-04-15T16:27:15Z")

</div>

Hi, I just want to say that your tutorial is really great and instructive! I have been following it, but I am running into a few issues.

First of all, I am having trouble with servers and Postman. When I run the given link in your tutorial ([http://0.0.0.0:9090/prediction?url=](http://0.0.0.0:9090/prediction?url=){yourimage url}&apikey=f69c02cc-5423-4285-9993-b42ecdec1c74) with my own image url in Postman, it says “Error: connect ECONNREFUSED 0.0.0.0:9090”. Is this a big issue, and if so, how can I resolve it?

EDIT: The pushing and pulling from Docker is no longer an issue. Now, I am having trouble with the step about gcloud builds submit --tag etc. I am getting this error: “unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /workspace/Dockerfile: no such file or directory  
ERROR  
ERROR: build step 0 “[gcr.io/cloud-builders/docker](http://gcr.io/cloud-builders/docker)” failed: step exited with non-zero status: 1”  
I have looked through the documentation a bit but it is pretty hard to understand. Do you have any ideas?

Do you have any ideas on these two issues? I have tried researching online for a while but I haven’t found any solutions, and I was hoping you would be able to help me.

EDIT: See above

---

<div class="post-metadata">

**Author:** ![aujincheng980815fomx](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@aujincheng980815fomx](https://community.thunkable.com/u/aujincheng980815fomx)\
**Post date:** [May 13, 2021, 10:54am UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/38 "2021-05-13T10:54:30Z")

</div>

Hi, may I know what is  
import tensorflow.hard  
Is it refer to  
import tensorflow.keras

---

<div class="post-metadata">

**Author:** ![Sofia](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sofia/32/50160_2.png) [@Sofia](https://community.thunkable.com/u/Sofia)\
**Post date:** [May 20, 2021, 4:09pm UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/39 "2021-05-20T16:09:03Z")

</div>

Uhm it’s another tensorflow library. To be honest I don’t know what is the difference but the tutorial uses _import tensorflow.keras_ I would strongly suggest sticking with the libraries and the versions of tutorial so it works perfectly!

---

<div class="post-metadata">

**Author:** ![Sofia](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sofia/32/50160_2.png) [@Sofia](https://community.thunkable.com/u/Sofia)\
**Post date:** [May 20, 2021, 4:14pm UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/40 "2021-05-20T16:14:57Z")

</div>

Ok ok, are you trying the run the link with the brackets? because that is not going to work. The brackets are intended as way to show you where the url goes. If it’s not the case you are doing it properly.

Then… about the connection error. Check what port are you exporting to is it 9090? You should have the docker container running before connecting to it. I would strongly suggest looking at a basic docker tutorial on youtube. There are plenty of them.

About the gcloud submission. Did you instal gcloud correctly? Perhaps if you docker container is not working, first solve that. I would move to a gcloud forum first, to see if they can help you with that. I don’t remember having any of those issues. Maybe look at youtube tutorials.

It’s a hard tutorial, I know but combined with other tutorials w/ the technology you are using it is possible. Python, Tensorflow, Gcloud and Docker 🙂

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:25am UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/41 "2024-11-08T11:25:29Z")

</div>

Closed on November 8, 2024, 11:25am UTC



[Previous page](https://community.thunkable.com/t/teachable-machine-web-api/587646.md?page=1)
