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?
141 Views Asked by amazing mustard At
1
There are 1 best solutions below
Related Questions in PYTHON
- How to store a date/time in sqlite (or something similar to a date)
- Instagrapi recently showing HTTPError and UnknownError
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to create a regular expression to partition a string that terminates in either ": 45" or ",", without the ": "
- Python Geopandas unable to convert latitude longitude to points
- Influence of Unused FFN on Model Accuracy in PyTorch
- Seeking Python Libraries for Removing Extraneous Characters and Spaces in Text
- Writes to child subprocess.Popen.stdin don't work from within process group?
- Conda has two different python binarys (python and python3) with the same version for a single environment. Why?
- Problem with add new attribute in table with BOTO3 on python
- Can't install packages in python conda environment
- Setting diagonal of a matrix to zero
- List of numbers converted to list of strings to iterate over it. But receiving TypeError messages
- Basic Python Question: Shortening If Statements
- Python and regex, can't understand why some words are left out of the match
Related Questions in HUGGINGFACE-TRANSFORMERS
- Text_input is not being cleared out/reset using streamlit
- Hugging Face - What is the difference between epochs in optimizer and TrainingArguments?
- Is BertForSequenceClassification using the CLS vector?
- HUGGINGFACE ValidationError: 1 validation error for StuffDocumentsChain __root__
- How to obtain latent vectors from fine-tuned model with transformers
- Is there a way to use a specific Pytorch model image processor in C++?
- meta-llama/Llama-2-7b-hf returning tensor instead of ModelOutput
- trainer.train doesnt work I am using transformers package and it gives me error like this:
- How to add noise to the intermediate layer of huggingface bert model?
- How can i import the document in Llamaindex
- Obtain prediction score
- How to converting GIT (ImageToText / image captioner ) model to ONNX format
- Encoder-Decoder with Huggingface Models
- How can I fine-tune a language model with negative examples using SFTTrainer?
- Fine tune resnet-50
Related Questions in BBC-MICROBIT
- algorithm to find n unique randomly selected coordinates
- Microbit: Sprite does not move
- How do the Kitronik Robotics Boards' motor outputs work only for motors specifically?
- Microbit: Plot x y does not work when a sprite is on the screen
- Lets say I have two buttons button A and button B I need it so that if I press B it will cycle through different values and pressing A will print them
- MICROBIT - Serial read line
- how would i replace one string values with another without breaking it
- Why can't the micro:bit detect multiple button presses before returning?
- Does anybody know why i am getting an error 528 on my bbc microbit V2.21?
- Connecting NFC scanner to phone in order to show a pop-up
- BBC Micro:Bit : possible to detect WebUSB?
- How to add a module (Transfomers) to the microbit code interface?
- Reading data from BBC micro:bit from Raspberry Pi command line
- micro:bit MakeCode problem -- Why does this happen?
- Trouble using microphone on micro:bit
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)
Popular # Hahtags
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?
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.