|
1 | 1 | <p align="center">
|
2 |
| - <img src="https://github.com/areebahmeddd/GodsEye/blob/main/assets/logo.png" alt="Project Logo"> |
| 2 | + <img src="assets/logo-transparent.png" alt="Project Logo"> |
3 | 3 | </p>
|
4 | 4 |
|
5 | 5 | ## Project Description
|
6 | 6 |
|
7 |
| -The automated feedback system uses web crawlers to create a dataset of news articles, scrape article URLs, and optical character recognition technology to extract content from e-papers. The system is built with the Streamlit framework to generate graphs using the Plotly library for visualization of scraped data. |
| 7 | +The automated news feedback system uses web crawlers to create a dataset of news articles, scrape article URLs, and optical character recognition technology to extract content from e-papers. The system is built with the Streamlit framework to generate graphs using the Plotly library for visualization of scraped data. |
8 | 8 |
|
9 |
| -Additionally, the system includes a chatbot (powered by the Gemini API) that provides perspective on the latest news for users and a Chrome extension for real-time fake news detection. |
| 9 | +Additionally, the system includes a chatbot (powered by Gemini API) that provides perspective on the latest news for users and a Chrome extension for real-time fake news detection. |
10 | 10 |
|
11 | 11 | ## System Architecture
|
12 | 12 |
|
@@ -41,68 +41,89 @@ Additionally, the system includes a chatbot (powered by the Gemini API) that pro
|
41 | 41 | ---
|
42 | 42 |
|
43 | 43 | <p align="center">
|
44 |
| - <img src="https://github.com/areebahmeddd/GodsEye/blob/main/assets/architecture.png" alt="System Architecture"> |
| 44 | + <img src="assets/architecture.png" alt="System Architecture"> |
45 | 45 | </p>
|
46 | 46 |
|
47 | 47 | ## Getting Started
|
48 | 48 |
|
49 | 49 | Follow these steps to set up and run the GodsEye software on your local machine, or you can watch the [demo video](https://youtube.com/watch?v=sWd4kOQU9as).
|
50 | 50 |
|
51 |
| -## Installation |
| 51 | +### Installation |
52 | 52 |
|
53 | 53 | 1. Clone the repository to your local machine:
|
54 |
| - ```shell |
55 |
| - git clone https://github.com/areebahmeddd/GodsEye.git |
56 |
| - ``` |
| 54 | + |
| 55 | + ```shell |
| 56 | + git clone https://github.com/areebahmeddd/GodsEye.git |
| 57 | + ``` |
57 | 58 |
|
58 | 59 | 2. Navigate to the project directory:
|
59 |
| - ```shell |
60 |
| - cd GodsEye |
61 |
| - ``` |
| 60 | + |
| 61 | + ```shell |
| 62 | + cd GodsEye |
| 63 | + ``` |
62 | 64 |
|
63 | 65 | 3. Create a virtual environment (optional but recommended):
|
64 |
| - ```shell |
65 |
| - python -m venv .venv |
66 |
| - ``` |
| 66 | + |
| 67 | + ```shell |
| 68 | + python -m venv .venv |
| 69 | + ``` |
67 | 70 |
|
68 | 71 | 4. Activate the virtual environment:
|
69 |
| - - Windows: |
70 |
| - ```shell |
71 |
| - .venv\Scripts\activate |
72 |
| - ``` |
73 |
| - - macOS and Linux: |
74 |
| - ```shell |
75 |
| - source .venv/bin/activate |
76 |
| - ``` |
| 72 | + |
| 73 | + - **Windows**: |
| 74 | + ```shell |
| 75 | + .venv\Scripts\activate |
| 76 | + ``` |
| 77 | + - **macOS and Linux**: |
| 78 | + ```shell |
| 79 | + source .venv/bin/activate |
| 80 | + ``` |
77 | 81 |
|
78 | 82 | 5. Install the project dependencies:
|
79 |
| - ```shell |
80 |
| - pip install -r requirements.txt |
81 |
| - ``` |
82 | 83 |
|
83 |
| -6. Set up the Chrome extension: |
84 |
| - - Open Chrome and go to `chrome://extensions`. |
85 |
| - - Enable "Developer mode" (top right corner). |
86 |
| - - Click "Load unpacked". |
87 |
| - - Select the `browser-extension` folder in the GodsEye repository. |
| 84 | + ```shell |
| 85 | + pip install -r requirements.txt |
| 86 | + ``` |
| 87 | + |
| 88 | +6. Set up the configuration files: |
| 89 | + |
| 90 | + - Create a `secrets.toml` file in the `.streamlit` directory with the following template: |
88 | 91 |
|
89 |
| -## Usage |
| 92 | + ```ini |
| 93 | + [admin] |
| 94 | + |
| 95 | + app_pass = "your_app_password" |
| 96 | +
|
| 97 | + [gemini] |
| 98 | + api_key = "your_gemini_api_key" |
| 99 | + ``` |
| 100 | + |
| 101 | +7. Set up the Chrome extension: |
| 102 | + - Open Chrome and go to `chrome://extensions`. |
| 103 | + - Enable "Developer mode" (top right corner). |
| 104 | + - Click "Load unpacked" (top left corner). |
| 105 | + - Select the `browser-extension` folder in the GodsEye repository. |
| 106 | + |
| 107 | +### Usage |
90 | 108 |
|
91 | 109 | 1. Launch the application by clicking the run button in the top right of VS Code, or execute:
|
92 |
| - ```shell |
93 |
| - python python-app/app.py |
94 |
| - ``` |
| 110 | + |
| 111 | + ```shell |
| 112 | + python python-app/app.py |
| 113 | + ``` |
95 | 114 |
|
96 | 115 | 2. Using the Browser Extension:
|
97 |
| - - Navigate to any of the following supported websites: |
98 |
| - - https://www.ndtv.com |
99 | 116 |
|
100 |
| - **NOTE**: The subdomain https://www.ndtvprofit.com is currently unsupported due to a different HTML structure. |
| 117 | + - Navigate to any of the following supported websites: |
| 118 | + |
| 119 | + - https://www.ndtv.com |
| 120 | + |
| 121 | + **NOTE**: The subdomain https://www.ndtvprofit.com is currently unsupported due to a different HTML structure. |
101 | 122 |
|
102 |
| - - Select and open any article. The browser extension will be displayed on the right side of the screen. Click on the extension icon to access detailed information. |
| 123 | + - Select and open any article. The browser extension will be displayed on the right side of the screen. Click on the extension icon to access detailed information. |
103 | 124 |
|
104 | 125 | 3. For Contributors:
|
105 |
| - - To apply changes made to the browser extension, visit `chrome://extensions`, click the "Update" button at the top left, and reload the article page to see the updates. |
| 126 | + - To apply changes made to the browser extension, visit `chrome://extensions`, click the "Update" button at the top left, and reload the article page to see the updates. |
106 | 127 |
|
107 | 128 | ## License
|
108 | 129 |
|
|
0 commit comments