Sukhyun commited on
Commit
47af741
·
verified ·
1 Parent(s): 49a6bf5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +11 -16
README.md CHANGED
@@ -1,53 +1,48 @@
 
 
 
 
 
 
 
 
 
 
1
  # Text to MBTI (Zero Shot - model)
2
  😄 MBTI Translator (Infer you personality type based on your sentence)
3
 
4
  Using Streamlit library, this project is implementing application with UI of following project: https://github.com/ethHong/text_mbti
5
-
6
  ## About the project & Examples
7
  * Pur the sentence and click 'generate' button. Using Zero shot classification model, the app predict the most probable MBTI of yourself.
8
  <img width="708" alt="Screenshot 2023-01-08 at 3 04 29 PM" src="https://user-images.githubusercontent.com/43837843/211182872-e0db4da8-9c7e-48bd-a3ec-04165baf5c7e.png">
9
-
10
  <img width="697" alt="Screenshot 2023-01-08 at 3 05 18 PM" src="https://user-images.githubusercontent.com/43837843/211182926-cd88e370-4790-40f3-a7f1-a964d09366ef.png">
11
-
12
-
13
  ## How it works?
14
  * This app uases Zero-shot classification model from Facebook.
15
  * The model uses pre-defined dictionary data which representes each of 16 personality type
16
  * It compute probability input keyword be relevant to each of the keywords mapped in dictionary of 16 personality types.
17
  ![image](https://user-images.githubusercontent.com/43837843/211183359-ad2cf761-99a7-467f-8bb9-cdf308bc019e.png)
18
-
19
-
20
  ## Output sample
21
  ```
22
  Input: "I stayed home all day"
23
-
24
  ===
25
-
26
  Output:
27
-
28
  You are: ISFP
29
  Ratio {'E': 27.338588094108168, 'I': 72.66141190589182} {'N': 22.149243913056992, 'S': 77.85075608694301} {'T': 46.17274433748438, 'F': 53.82725566251562} {'P': 57.30466611213056, 'J': 42.69533388786944}
30
  ```
31
-
32
  ```
33
  Input: "I'm making plans for my trip to Osaka. I'm so excited!"
34
-
35
  ===
36
-
37
  Output:
38
-
39
  You are: ESTJ
40
  Ratio {'E': 71.53464326345417, 'I': 28.46535673654582} {'N': 35.33135528913844, 'S': 64.66864471086156} {'T': 58.70273162646018, 'F': 41.29726837353982} {'P': 46.96476087995551, 'J': 53.03523912004449}
41
  ```
42
-
43
  ## Model and requirements
44
  * Model reference: https://huggingface.co/facebook/bart-large-mnli
45
  * Environment setup:
46
  > 02.20 update: Use requirements.txt to setup required libraries.
47
-
48
  ```
49
  pip install -r requirements.txt
50
  ```
51
  ```
52
  streamlit run app.py
53
- ```
 
1
+ ---
2
+ title: Text to MBTI
3
+ emoji: 🤗
4
+ colorFrom: yellow
5
+ colorTo: blue
6
+ sdk: streamlit
7
+ app_file: app.py
8
+ pinned: false
9
+ license: apache-2.0
10
+ ---
11
  # Text to MBTI (Zero Shot - model)
12
  😄 MBTI Translator (Infer you personality type based on your sentence)
13
 
14
  Using Streamlit library, this project is implementing application with UI of following project: https://github.com/ethHong/text_mbti
 
15
  ## About the project & Examples
16
  * Pur the sentence and click 'generate' button. Using Zero shot classification model, the app predict the most probable MBTI of yourself.
17
  <img width="708" alt="Screenshot 2023-01-08 at 3 04 29 PM" src="https://user-images.githubusercontent.com/43837843/211182872-e0db4da8-9c7e-48bd-a3ec-04165baf5c7e.png">
 
18
  <img width="697" alt="Screenshot 2023-01-08 at 3 05 18 PM" src="https://user-images.githubusercontent.com/43837843/211182926-cd88e370-4790-40f3-a7f1-a964d09366ef.png">
 
 
19
  ## How it works?
20
  * This app uases Zero-shot classification model from Facebook.
21
  * The model uses pre-defined dictionary data which representes each of 16 personality type
22
  * It compute probability input keyword be relevant to each of the keywords mapped in dictionary of 16 personality types.
23
  ![image](https://user-images.githubusercontent.com/43837843/211183359-ad2cf761-99a7-467f-8bb9-cdf308bc019e.png)
 
 
24
  ## Output sample
25
  ```
26
  Input: "I stayed home all day"
 
27
  ===
 
28
  Output:
 
29
  You are: ISFP
30
  Ratio {'E': 27.338588094108168, 'I': 72.66141190589182} {'N': 22.149243913056992, 'S': 77.85075608694301} {'T': 46.17274433748438, 'F': 53.82725566251562} {'P': 57.30466611213056, 'J': 42.69533388786944}
31
  ```
 
32
  ```
33
  Input: "I'm making plans for my trip to Osaka. I'm so excited!"
 
34
  ===
 
35
  Output:
 
36
  You are: ESTJ
37
  Ratio {'E': 71.53464326345417, 'I': 28.46535673654582} {'N': 35.33135528913844, 'S': 64.66864471086156} {'T': 58.70273162646018, 'F': 41.29726837353982} {'P': 46.96476087995551, 'J': 53.03523912004449}
38
  ```
 
39
  ## Model and requirements
40
  * Model reference: https://huggingface.co/facebook/bart-large-mnli
41
  * Environment setup:
42
  > 02.20 update: Use requirements.txt to setup required libraries.
 
43
  ```
44
  pip install -r requirements.txt
45
  ```
46
  ```
47
  streamlit run app.py
48
+ ```