View it at : click here
This is a project that seeks to celebrate Ada Lovelace by bringing together two wildly different domains that moulded Ada's life - computer programs and poetry. And so, generating sonnets through AI. This is also our submission for the IEEE Ada Lovelace Hack, October 2020, and we're very glad to have progressed to the final round. The project has now been upgraded and is better than ever. The project consists of two major parts.
- An ML model that can generate sonnets based on an image fed by the user.
- A simple, intuitive webpage that serves as an interface between the AI and the user.
- Flutter for the Web
- Flask
- Python version 3.7.3
- TensorFlow , matplotlib
The webpage has been built using Flutter. To run the backend flask rest api on your local systems follow the following steps:
- clone the github repo
- Do pip install -r requirements.txt
- python app1.py
Your server will now be started on port 5000
- Flutter
- Dart
- Text editor to view the code ( VSCode/Android Studio/Atom, etc. is preferred, though you can view it even with simple applications like Notepad. )
- Python (version : 3.7.3 preferred)
The process has two main parts.
- Part 1 : Installing Flutter and Dart.
https://flutter.dev/docs/get-started/install
If this seems too confusing, or hard to follow, you can refer the following video - https://www.youtube.com/watch?v=1ukSR1GRtMU - from 06:02 to 10:26. This explains flutter and it's installation step by step, in great detail, and will make sure you have absolutely no trouble.
*Note: Android Studio is not a necessity, because this project uses Flutter to build a webpage, not a mobile app. *
- Part 2 : Enabling Flutter for the web.
Once you have installed Flutter and Dart successfully, run the following commands on the command prompt.
- flutter channel master
- flutter upgrade (to ensure you are on the latest version)
- flutter doctor (to check if everything is fine)
- flutter config --enable-web
Again, in case of any problems, you may refer this video: https://www.youtube.com/watch?v=33kyEzDMTZU&t=44s from 00:00 to 01:00
You are now good to go!
- In the terminal, enter the following command :
- flutter run - This will open up the webpage on the browser.
The webpage has been made to be both intuitive and responsive, which means it is very simple to use and can even be viewed on different devices with different aspect ratios. Still, here we attach a small step-by-step use-case:-
- Click on the 'Generate sonnet' button to upload an image
- You will now be shown the sonnet written by our ML model.
- Click on the copy button at the top right. This way, you can easily copy the entire sonnet at the click of a button.
- To go back home, simply click on Back Home on the top left.
It's as simple as that!
We are Team Tesseract, a group of undergraduates from Ramaiah Institute of Technology, Bengaluru, and active members of IEEE.
Team members:
- Muskan Gupta (5th sem)
- Soundarya Rangarajan (3rd sem)
- Manvendra Bansal (5th sem)
- Prateek Pandey (5th sem)
Mentor: Dr. Annapurna P. Patil
- Binary Icon from Flaticon.com (https://www.flaticon.com/free-icon/binary_1822940?term=binary&page=1&position=3)
- Ada lovelace picture from https://www.biography.com/scholar/ada-lovelace
- The Ada Lovelace graphic is original and has been developed by our team, from the above assets.
- Graphic tool : Canva, https://www.canva.com/
- For Presentation Link : click here
- Explanation Video Link : click here
- App Demo Link : click here