SudhanshuBlaze commited on
Commit
792d0e0
1 Parent(s): 78e37ea

Improve readme file

Browse files
Files changed (1) hide show
  1. README.md +32 -11
README.md CHANGED
@@ -5,34 +5,55 @@ sdk: streamlit
5
  sdk_version: "1.22.0"
6
  app_file: app.py
7
  ---
 
8
  # GoEmotions Dashboard - Analyzing Emotions in Text
9
 
10
- This is a Python script that uses Streamlit, Plotly, and the Hugging Face API to create a web-based dashboard for analyzing emotions in text.
11
 
12
- ## Requirements:
13
 
14
- Python 3.7 or higher
15
- Hugging Face API
16
 
17
  ## Installation
18
 
19
- - Clone this repository to your local machine.
20
- - Install the required packages using pip:
 
 
 
 
 
21
 
22
  ```bash
23
  pip install -r requirements.txt
24
  ```
25
 
26
- - Create a free account on the Hugging Face website to get an API key.
 
 
27
 
28
  - Create a `.env` file in the root directory of the project and add your
29
  - Hugging Face API key like this: `HF_API_KEY=<your_api_key_here>`
30
 
31
- ## Usage:
 
 
 
 
32
 
33
- - Navigate to the root directory of the project.
34
- - Run the Streamlit app by typing `streamlit run app.py` or `python -m streamlit run app.py` in the command line.
35
- - For GitHub Codespaces, Run: `python -m streamlit run app.py --server.enableCORS false --server.enableXsrfProtection false`
 
 
 
 
 
 
 
 
 
 
36
 
37
  - A web-based dashboard will open in your default browser.
38
  - Type or paste a text input in the text box provided.
 
5
  sdk_version: "1.22.0"
6
  app_file: app.py
7
  ---
8
+
9
  # GoEmotions Dashboard - Analyzing Emotions in Text
10
 
11
+ This is a Python script that uses Streamlit, Plotly, and the Hugging Face Inference API to create a web-based dashboard for analyzing emotions in text.
12
 
13
+ ## Pre-requisites:
14
 
15
+ - Python 3.7 or higher
 
16
 
17
  ## Installation
18
 
19
+ `Step 1` - Clone this repository to your local machine.
20
+
21
+ ```bash
22
+ git clone https://github.com/SudhanshuBlaze/GoEmotions.git
23
+ ```
24
+
25
+ `Step 2` - Install the required packages using pip:
26
 
27
  ```bash
28
  pip install -r requirements.txt
29
  ```
30
 
31
+ `Step 3`- Create a free account on the [Hugging Face website](https://huggingface.co/) to get an API key.
32
+
33
+ `Step 4`
34
 
35
  - Create a `.env` file in the root directory of the project and add your
36
  - Hugging Face API key like this: `HF_API_KEY=<your_api_key_here>`
37
 
38
+ `Step 5` - Navigate to the root directory of the project.
39
+
40
+ ```bash
41
+ cd GoEmotions
42
+ ```
43
 
44
+ `Step 6` - Run the Streamlit app.
45
+
46
+ ```bash
47
+ streamlit run app.py
48
+ ```
49
+
50
+ - If you want to run this application on GitHub Codespaces, you will need to add the following flags to the `streamlit run` command:
51
+
52
+ ```bash
53
+ python -m streamlit run app.py --server.enableCORS false --server.enableXsrfProtection false
54
+ ```
55
+
56
+ ## Usage:
57
 
58
  - A web-based dashboard will open in your default browser.
59
  - Type or paste a text input in the text box provided.