So, I was making a program on the BBC microbit that would change its face according to the gestures you made with it. Then I looked into to adding a chat bot built in to it and it would talk back to you with the speech function. I then saw a bit about DialoGPT and I looked into it and saw that it required the transformers library. Then I did some digging on how to add third party libraries into the microbit Py interface and found this help and support article and it said all you had to do was "drag and drop" the file into the web page. I then went, and downloaded the library via pip in the terminal and found that library in my files, uploaded it to google drive (because I needed to get the file to another computer for reasons I wont get into. I also couldn't download libraries on the other computer) the waited for it to upload, downloaded it on the other computer and did what the article said. (this is where I think I went wrong) expect it wouldn't let me upload folders and I just dragged each individual file in. then after all of this, I tried importing the modules I needed but it still said that they were not modules in the code. if anybody knows how to do this or just using a different model or just having to scrap the chat bot idea in general, let me know.
How to add a module (Transfomers) to the microbit code interface?
64 views Asked by amazing mustard At
1
There are 1 answers
Related Questions in PYTHON
- No responses from google places text search api
- compare python requests with curl
- file_get_contents not working on my server but works fine anywhere else?
- Converting curl command to iOS
- cURL PHP code redirect after success
- curl command cannot get contents from api.github, but the network is fine
- PHP cURL Request for Web Service Returning Error
- How to convert CURL command to Swift
- curl command don't work in some cases
- Silence output curl_setopt_array
Related Questions in HUGGINGFACE-TRANSFORMERS
- No responses from google places text search api
- compare python requests with curl
- file_get_contents not working on my server but works fine anywhere else?
- Converting curl command to iOS
- cURL PHP code redirect after success
- curl command cannot get contents from api.github, but the network is fine
- PHP cURL Request for Web Service Returning Error
- How to convert CURL command to Swift
- curl command don't work in some cases
- Silence output curl_setopt_array
Related Questions in BBC-MICROBIT
- No responses from google places text search api
- compare python requests with curl
- file_get_contents not working on my server but works fine anywhere else?
- Converting curl command to iOS
- cURL PHP code redirect after success
- curl command cannot get contents from api.github, but the network is fine
- PHP cURL Request for Web Service Returning Error
- How to convert CURL command to Swift
- curl command don't work in some cases
- Silence output curl_setopt_array
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
The micro:bit has an embedded microprocessor with less than 1 MB of storage in total. The HuggingFace transformers library is nearly 8 MB on its own, then to use it you need to download models that can be gigabytes in size.
The comment by @jasonharper is correct: it's not that you're going about it the wrong way, it's simply not possible to run this library on the micro:bit (and even if you could fit the library and model on it, and dealt with any incompatibilities between 'full' Python and the micro:bit's MicroPython language, it would probably be unusably slow). That's just not the kind of thing the microbit is designed to be capable of.
It might be possible to program the micro:bit to record your voice and transmit the recording to a PC running the speech-to-text, chatbot, and text-to-speech functions, which would then transmit the response back to the micro:bit to play back to you. I would say the PC side of that is a significant project if you're not very familiar with the technologies involved, though.