Usage - cs130-w21/22 GitHub Wiki

This application operates by taking in the EULA document in two possible formats: (1) text that is copied and pasted into the app and (2) a PDF document that is uploaded to the app. Here, we walk through these two user flows with example documents provided in the repository.

Input Flow 1: Text Input

Step 1

Upon starting the application, this default screen should be seen, with the Text Input tab selected on the left-hand-side Input box.

Step 2

Copy and paste the text provided in frontend/test/sample_eula.txt paste into input box titled Paste your agreement.

Step 3

Click 'Calculate'. The backend should take from 10 seconds to a minute to make a prediction. In the meantime, you should see a screen on the right-hand-side box showing that the calculation is in progress.

Step 4

When the results are returned, check that the screen looks as shown below. This EULA example should be classified as ethical as shown in the green box with a brief summary.

Input Flow 2: Upload PDF

Step 1

Now when the application is started click on the Upload PDFtab of the left-hand-side Input box.

Step 2

Download the sample EULA PDF provided in frontend/test/sample_eula.pdf and click on the blue area in the Input box. Select this file from your local machine.

You may alternatively drag and drop this file into the blue box. Once the file is selected, the below screen should be seen, indicating that the calculation is ready to be made.

Step 3

Click 'Calculate'. The backend should take from 10 seconds to a minute to make a prediction. In the meantime, you should see a screen on the right-hand-side box showing that the calculation is in progress.

Step 4

When the results are returned, check that the screen looks as shown below. This EULA example should be classified as unethical as shown in the red box.

Error from Backend

If the backend server returns an error, the right-hand-side Output box should display the following error screen with a clear error message.