In short, it provides a natural language API on top of transformers: It has defined a set of curated tools and designed an agent to interpret natural language and to use these tools. It is extensible by design.
For this repo, I have added the following capabilities:-
- Image Generation
- Image Caption Generation
- Text to Speech
- PDF Document Question Answering
- Translation
- Summary of link
Run the following command to install all project requirements.
$ pip install -r requirements.txt
- Get the token on your profile page on HuggingFace
- Open
main.py
- Add your token to the following line in the code as an argument to
login
login("<Insert HuggingFace Token>")
Run main.py
using command line
$ python main.py
NOTE:
For 'Image Generation' and 'Translation', I am generating the code which will give the output for these features. This is due to my lack of computational resources. If you don't have this challenge, search for the following statement in main.py
return_code=True
Remove this argument from the function call and the features will run normally after!