diff --git a/README.md b/README.md index 940bff9..dd24351 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,35 @@ # CS-Bots +[![BCH compliance](https://bettercodehub.com/edge/badge/aditya109/CS-Bot?branch=master)](https://bettercodehub.com/) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/cbd5891dbea04a2aad56fa4164328707)](https://www.codacy.com/manual/aditya109/CS-Bot?utm_source=github.com&utm_medium=referral&utm_content=aditya109/CS-Bot&utm_campaign=Badge_Grade) +Prerequisites to be installed : -https://docs.google.com/document/d/1ToO1D_evbfdIN88-9JRJEftSbTMoUfKfCxxOowS5-Tw/edit + - nodeJS + - python (>=3.6) + - pip (>=20.0.2) + + +Steps to set this system up (**For Windows**): + +1. Clone this repository **inside** any directory (let's assume for this instance folder's name to be `temp` )using the following command : + ` git clone https://github.com/Akanksha810/CS-Bot` + +2. Setting up ReactJS Frontend : + Open a terminal instance in your directory (`temp` here) and then run the following commands : + `cd .\CS-Bot\bot-ui\ ` + `npm install` + `npm start` + +> This will probably start up **React** **UI-Server** on `http://localhost:3000`. +> Browse to this link to start the UI + +3. Setting up the Py-Flask server : + Open another terminal instance in your directory (`temp` here) and then run the following commands : + ` cd .\CS-Bot\bot-server\ ` + `pip install -r requirements.txt` + `python main.py` + + > This will probably start up **Flask Backend-Server** on `http://localhost:5010`. + +START using the software and have fun !! Alpha Testing Credits: - Aryan [email](kraryan700@gmail.com) diff --git a/bot-server/__pycache__/classifier.cpython-37.pyc b/bot-server/__pycache__/classifier.cpython-37.pyc index 3211acf..ae5548c 100644 Binary files a/bot-server/__pycache__/classifier.cpython-37.pyc and b/bot-server/__pycache__/classifier.cpython-37.pyc differ diff --git a/bot-server/__pycache__/handlers.cpython-37.pyc b/bot-server/__pycache__/handlers.cpython-37.pyc index e76967a..21519c0 100644 Binary files a/bot-server/__pycache__/handlers.cpython-37.pyc and b/bot-server/__pycache__/handlers.cpython-37.pyc differ diff --git a/bot-server/__pycache__/shorten.cpython-37.pyc b/bot-server/__pycache__/shorten.cpython-37.pyc index 8e3f999..111c3b7 100644 Binary files a/bot-server/__pycache__/shorten.cpython-37.pyc and b/bot-server/__pycache__/shorten.cpython-37.pyc differ diff --git a/bot-server/handlers.pyc b/bot-server/handlers.pyc deleted file mode 100644 index b54dfaf..0000000 Binary files a/bot-server/handlers.pyc and /dev/null differ diff --git a/bot-server/requirements.txt b/bot-server/requirements.txt new file mode 100644 index 0000000..70ba414 Binary files /dev/null and b/bot-server/requirements.txt differ diff --git a/bot-server/shorten.pyc b/bot-server/shorten.pyc deleted file mode 100644 index 1af04fe..0000000 Binary files a/bot-server/shorten.pyc and /dev/null differ diff --git a/output-files/classify-output.txt b/output-files/classify-output.txt index 110c72d..cb16704 100644 --- a/output-files/classify-output.txt +++ b/output-files/classify-output.txt @@ -1 +1 @@ -{'Arts': 0.758014, 'Society': 0.0905029, 'Games': 0.0404046, 'Science': 0.0305192, 'Computers': 0.023625, 'Health': 0.0146723, 'Home': 0.0110422, 'Sports': 0.0110219, 'Recreation': 0.0105335, 'Business': 0.00966405, 'text_coverage': 0.648649} \ No newline at end of file +{'Recreation': 0.280883, 'Science': 0.145449, 'Business': 0.130778, 'Computers': 0.114978, 'Games': 0.0698031, 'Society': 0.0650845, 'Home': 0.0603097, 'Arts': 0.0583867, 'Health': 0.0442572, 'Sports': 0.0300698, 'text_coverage': 0.698842} \ No newline at end of file diff --git a/output-files/summarize-output.txt b/output-files/summarize-output.txt index 30a14aa..eba0583 100644 --- a/output-files/summarize-output.txt +++ b/output-files/summarize-output.txt @@ -1,2 +1,3 @@ -26 April 1564 – 23 April 1616)[a] was an English poet, playwright, and actor, widely regarded as the greatest writer in the English language and the world's greatest dramatist.[2][3][4] He is often called England's national poet and the "Bard of Avon" (or simply "the Bard").[5][b] His extant works, including collaborations, consist of some 39 plays,[c] 154 sonnets, two long narrative poems, and a few other verses, some of uncertain authorship. -However, in 1623, two fellow actors and friends of Shakespeare's, John Heminges and Henry Condell, published a more definitive text known as the First Folio, a posthumous collected edition of Shakespeare's dramatic works that included all but two of his plays.[13] The volume was prefaced with a poem by Ben Jonson, in which Jonson presciently hails Shakespeare in a now-famous quote as "not of an age, but for all time".[13] \ No newline at end of file +There are costs and benefits to car use. +The costs to the individual include acquiring the vehicle, interest payments (if the car is financed), repairs and maintenance, fuel, depreciation, driving time, parking fees, taxes, and insurance.[6] The costs to society include maintaining roads, land use, road congestion, air pollution, public health, health care, and disposing of the vehicle at the end of its life. +People's ability to move flexibly from place to place has far-reaching implications for the nature of societies.[9] There are around 1 billion cars in use worldwide. \ No newline at end of file