CTRUH ML/AI ASSIGNMENT
This repository contains all the work done for the assignment which comprises of a python script which provides a server backend, and the Web App whose frontend is based on React framework to make use of the Text-To-Image Utility
Steps to install on local machine
-
Download the entire directory into the local machine
-
Install the following dependencies Server-side: pip install keras_cv matplotlib numpy pandas tensorflow fastapi PIL uvicorn
Front end:
- Install Node.js installer
- npm install -g create-react-app
- npm install -D tailwindcss
-
To get the backend running, go to the server folder in the command line, and run this command uvicorn api:app --reload
Now the server would be hosted on localhost from where we can make api calls using the frontend
- To get the frontend running on localhost, navigate to WebApp/frontend folder using command line, and run 'npm start', and the user interface would be available on the assigned localhost port
The documentation.txt file contains an explanantion of the server code.