InSightMail is thoughtfully crafted to enhance accessibility, enabling individuals who are blind to seamlessly manage and communicate through their Gmail inbox. Leveraging the advanced Gemma 2 model, InSightMail transforms email interaction into an intuitive and natural language experience.
- Email Summarization: Quickly grasp the essence of your messages with concise and clear summaries.
- Smart Email Responses: Effortlessly reply to emails using intelligent, context-aware suggestions.
- AI-Powered Email Drafting: Compose well-articulated emails with the assistance of our sophisticated AI drafting tool.
- Experience a more accessible and efficient way to stay connected with InSightMail—where technology meets inclusivity.
- Go to the Google Cloud Console.
- In the top left corner, click on the Select a Project dropdown and click New Project.
- Provide a name for your project and click Create.
- After creating your project, go to the APIs & Services Dashboard.
- Search for the Gmail API and enable it.
- Go to the Credentials page in the Google Cloud Console: Credentials Page.
- Click Create Credentials and select OAuth 2.0 Client IDs.
- In the Create OAuth client ID page:
- For Application type, choose Web application.
- Set Authorized JavaScript origins to
http://localhost(for local development). - Set Authorized redirect URIs to
http://localhost.
- Click Create. You will now see your Client ID and Client Secret.
- After creating the OAuth client ID, click the Download button next to your new credentials. This will download a
credentials.jsonfile. - Important: Store this file securely and do not share it publicly.
To authenticate your Streamlit application with Google Cloud services, you need to provide your credentials securely. Follow these steps to create a secrets.toml file:
-
Create the
secrets.tomlFile inside the.streamlitdirectory-
Linux:
touch .streamlit/secrets.toml -
Windows:
nano .streamlit/secrets.toml
-
-
Copy-paste the following content and replace the placeholders with your actual credentials:
[credentials_json.installed] client_id = "your_client_id" project_id = "your_project_id" auth_uri = "https://accounts.google.com/o/oauth2/auth" token_uri = "https://oauth2.googleapis.com/token" auth_provider_x509_cert_url = "https://www.googleapis.com/oauth2/v1/certs" client_secret = "your_client_secret" redirect_uris = ["http://localhost"] -
Run the application (Locally)
streamlit run src/main.py
-
Create a new project and upload your code using one of the provided methods.
-
Copy-paste your local "secrets.toml" file's content into "Advanced Settings" -> "Secrets" and click "Deploy".
For further details please take a look at the official Streamlit Secrets Management documentation.