Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Create utils.py
Browse files- constants/utils.py +14 -0
constants/utils.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
|
3 |
+
def get_secrets():
|
4 |
+
gemini_api_key = os.getenv("GEMINI_API_KEY")
|
5 |
+
hf_token = os.getenv("HF_TOKEN")
|
6 |
+
dataset_repo_id = os.getenv("SOURCE_DATA_REPO_ID")
|
7 |
+
request_arxiv_repo_id = os.getenv("REQUEST_DATA_REPO_ID")
|
8 |
+
|
9 |
+
return (
|
10 |
+
gemini_api_key,
|
11 |
+
hf_token,
|
12 |
+
dataset_repo_id,
|
13 |
+
request_arxiv_repo_id
|
14 |
+
)
|