44 | );
45 | }
46 |
47 | export default App;
48 |
49 |
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
12 |
13 |
17 |
18 |
27 | React App
28 |
29 |
30 |
31 |
32 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Text Emotion Detection using Gemini Nano(Integration with Chrome ) and React
2 |
3 | # Usecase :
4 |
5 | Difficulty understanding emotions in multiple modalities like Face , Speech and Text forms important markers in the diagnosis of Autism spectrum Disorder(ASD) . This Chrome extension aims to help autistic individuals identify emotions in Text using Gemini .
6 |
7 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
8 |
9 | ## Demo Video
10 |
11 | [gemini_nano.webm](https://github.com/user-attachments/assets/067bbf33-19ce-4daa-b563-a17e2a371932)
12 |
13 | ## WorkFlow
14 | 
15 |
16 |
17 | ## Get this
18 |
19 | Gemini nano is currently not supported to Chrome stable version, you need to install Chrome Canary
20 |
21 |
22 | After then, you should turn on these flags:
23 | * [chrome://flags/#prompt-api-for-gemini-nano](chrome://flags/#prompt-api-for-gemini-nano): `Enabled`
24 | * [chrome://flags/#optimization-guide-on-device-model](chrome://flags/#optimization-guide-on-device-model): `Enabled BypassPrefRequirement`
25 | * [chrome://components/](chrome://components/): Click `Optimization Guide On Device Model` to download the model.
26 |
27 | > Note: The `Optimization Guide On Device Model` may not show up. What worked for me was opening the devtools and trying out the following:
28 |
29 | > ```await ai.canCreateTextSession()```
30 |
31 | After setting up, now you can clone this repo and run this
32 |
33 | ## Available Scripts
34 |
35 | In the project directory, you can run:
36 |
37 | ### `npm start`
38 |
39 | Runs the app in the development mode.\
40 | Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
41 |
42 | The page will reload when you make changes.\
43 | You may also see any lint errors in the console.
44 |
45 | ### `npm test`
46 |
47 | Launches the test runner in the interactive watch mode.\
48 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
49 |
50 | ### `npm run build`
51 |
52 | Builds the app for production to the `build` folder.\
53 | It correctly bundles React in production mode and optimizes the build for the best performance.
54 |
55 | The build is minified and the filenames include the hashes.\
56 | Your app is ready to be deployed!
57 |
58 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
59 |
60 |
61 |
62 |
63 |
--------------------------------------------------------------------------------
/src/logo.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------