Spaces:
Sleeping
Sleeping
Merge pull request #8 from AutoLLM/fixes
Browse filesspecify that SendGrid must match FROM_EMAIL
- README.md +14 -11
- readme_images/example_1.png +0 -0
- readme_images/example_2.png +0 -0
README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
#
|
2 |
-
This repo aims to provide a better daily digest for newly published arXiv papers based on your own research interests and descriptions.
|
3 |
|
4 |
## π Contents
|
5 |
|
@@ -27,7 +27,8 @@ This repository offers a method to curate a daily digest, sorted by relevance, u
|
|
27 |
|
28 |
### Some examples:
|
29 |
|
30 |
-
|
|
|
31 |
- Categories: Artificial Intelligence, Computation and Language
|
32 |
- Interest:
|
33 |
- Large language model pretraining and finetunings
|
@@ -35,12 +36,14 @@ This repository offers a method to curate a daily digest, sorted by relevance, u
|
|
35 |
- Do not care about specific application, for example, information extraction, summarization, etc.
|
36 |
- Not interested in paper focus on specific languages, e.g., Arabic, Chinese, etc.
|
37 |
|
|
|
38 |

|
39 |
|
40 |
-
|
41 |
-
- Subject: Quantitative Finance
|
42 |
- Interest: "making lots of money"
|
43 |
|
|
|
44 |

|
45 |
|
46 |
## π‘ Usage
|
@@ -56,8 +59,8 @@ The recommended way to get started using this repository is to:
|
|
56 |
5. Set the following secrets [(under settings, Secrets and variables, repository secrets)](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository):
|
57 |
- `OPENAI_API_KEY`
|
58 |
- `SENDGRID_API_KEY`
|
59 |
-
- `FROM_EMAIL`
|
60 |
-
- `TO_EMAIL`
|
61 |
6. Manually trigger the action or wait until the scheduled action takes place.
|
62 |
|
63 |

|
@@ -96,11 +99,11 @@ If you do not wish to fork this repository, and would prefer to clone and run it
|
|
96 |
2. Modify the configuration file `config.yaml`
|
97 |
3. Create or fetch your api key for [OpenAI](https://platform.openai.com/account/api-keys). Note: you will need an OpenAI account.
|
98 |
4. Create or fetch your api key for [SendGrid](https://app.SendGrid.com/settings/api_keys) (optional, if you want the script to email you)
|
99 |
-
5. Set the following secrets
|
100 |
- `OPENAI_API_KEY`
|
101 |
- `SENDGRID_API_KEY` (only if using SendGrid)
|
102 |
-
- `FROM_EMAIL` (only if using SendGrid and if you don't have
|
103 |
-
- `TO_EMAIL` (only if using SendGrid and if you don't have
|
104 |
6. Run `python action.py`.
|
105 |
7. If you are not using SendGrid, the html of the digest will be written to `digest.html`. You can then use your favorite webbrowser to view it.
|
106 |
|
@@ -108,7 +111,7 @@ You may want to use something like crontab to schedule the digest.
|
|
108 |
|
109 |
### Running with a user interface
|
110 |
|
111 |
-
Install the requirements in `src/requirements.txt` as well as `gradio`. Set the evironment variables `OPENAI_API_KEY`, `FROM_EMAIL` and `SENDGRID_API_KEY`
|
112 |
|
113 |
Run `python src/app.py` and go to the local URL. From there you will be able to preview the papers from today, as well as the generated digests.
|
114 |
|
|
|
1 |
+
# ArxivDigest
|
2 |
+
This repo aims to provide a better daily digest for newly published arXiv papers based on your own research interests and descriptions via relevancy ratings from GPT.
|
3 |
|
4 |
## π Contents
|
5 |
|
|
|
27 |
|
28 |
### Some examples:
|
29 |
|
30 |
+
#### Digest Configuration:
|
31 |
+
- Subject/Topic: Computer Science
|
32 |
- Categories: Artificial Intelligence, Computation and Language
|
33 |
- Interest:
|
34 |
- Large language model pretraining and finetunings
|
|
|
36 |
- Do not care about specific application, for example, information extraction, summarization, etc.
|
37 |
- Not interested in paper focus on specific languages, e.g., Arabic, Chinese, etc.
|
38 |
|
39 |
+
#### Result:
|
40 |

|
41 |
|
42 |
+
#### Digest Configuration:
|
43 |
+
- Subject/Topic: Quantitative Finance
|
44 |
- Interest: "making lots of money"
|
45 |
|
46 |
+
#### Result:
|
47 |

|
48 |
|
49 |
## π‘ Usage
|
|
|
59 |
5. Set the following secrets [(under settings, Secrets and variables, repository secrets)](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository):
|
60 |
- `OPENAI_API_KEY`
|
61 |
- `SENDGRID_API_KEY`
|
62 |
+
- `FROM_EMAIL` This value must match the email you used to create the SendGrid Api Key. This is not needed if you have it set in `config.yaml`.
|
63 |
+
- `TO_EMAIL` Only if you don't have it set in `config.yaml`
|
64 |
6. Manually trigger the action or wait until the scheduled action takes place.
|
65 |
|
66 |

|
|
|
99 |
2. Modify the configuration file `config.yaml`
|
100 |
3. Create or fetch your api key for [OpenAI](https://platform.openai.com/account/api-keys). Note: you will need an OpenAI account.
|
101 |
4. Create or fetch your api key for [SendGrid](https://app.SendGrid.com/settings/api_keys) (optional, if you want the script to email you)
|
102 |
+
5. Set the following secrets as environment variables:
|
103 |
- `OPENAI_API_KEY`
|
104 |
- `SENDGRID_API_KEY` (only if using SendGrid)
|
105 |
+
- `FROM_EMAIL` (only if using SendGrid and if you don't have it set in `config.yaml`. Note that this value must match the email you used to create the SendGrid Api Key.)
|
106 |
+
- `TO_EMAIL` (only if using SendGrid and if you don't have it set in `config.yaml`)
|
107 |
6. Run `python action.py`.
|
108 |
7. If you are not using SendGrid, the html of the digest will be written to `digest.html`. You can then use your favorite webbrowser to view it.
|
109 |
|
|
|
111 |
|
112 |
### Running with a user interface
|
113 |
|
114 |
+
Install the requirements in `src/requirements.txt` as well as `gradio`. Set the evironment variables `OPENAI_API_KEY`, `FROM_EMAIL` and `SENDGRID_API_KEY`. Ensure that `FROM_EMAIL` matches `SENDGRID_API_KEY`.
|
115 |
|
116 |
Run `python src/app.py` and go to the local URL. From there you will be able to preview the papers from today, as well as the generated digests.
|
117 |
|
readme_images/example_1.png
CHANGED
![]() |
![]() |
readme_images/example_2.png
CHANGED
![]() |
![]() |