Spaces:
Sleeping
Sleeping
rsnarsna commited on
Commit ·
d4639a3
1
Parent(s): aedd1cc
fix: Update OAuth token and refresh token; adjust polling intervals for retry attempts
Browse files- Google_oauth_token.json +1 -1
- gemini_transcript.py +12 -7
Google_oauth_token.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"token": "ya29.
|
|
|
|
| 1 |
+
{"token": "ya29.a0AT3oNZ95tIeMyTUfKjwQDCqj3tE4zkMx-Ofd69fpo26fjN7CR-FPjxiSIVz71PyuHf0raSmUiN_9Y_cHO8bIsjJuq2Iav-VfZR8C0VBSQPqmmEMWecgPsoh-gW8fOK3adpRQ8XXidX0IbCAzr_3Ohg5qbbpXedCkgaKwd5pWfV-ePF2XWKTtA3MGVTHTw276e3FnzZ4aCgYKAXgSARcSFQHGX2Mi54MX0XoOZ_3HMQ5LQmkQVg0206", "refresh_token": "1//0gB7Wvc3i1pwQCgYIARAAGBASNwF-L9IrCQAsGQpKLWUO-ofQt2lkPXic5fszEjvzKkGUx8k1V1HZRAMzuchTl8hdjEpilpJA0ik", "token_uri": "https://oauth2.googleapis.com/token", "client_id": "769133159215-9gbq0l5v49kmclfcq7vbq7tutck0aphd.apps.googleusercontent.com", "client_secret": "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", "scopes": ["https://www.googleapis.com/auth/spreadsheets", "https://www.googleapis.com/auth/gmail.send", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/youtube.force-ssl"], "universe_domain": "googleapis.com", "account": "", "expiry": "2026-06-08T09:33:20.292878Z"}
|
gemini_transcript.py
CHANGED
|
@@ -37,13 +37,18 @@ GEMINI_MODELS = [
|
|
| 37 |
POLLING_CONFIG = {
|
| 38 |
"attempt_1": {"wait_before": 0, "description": "Immediate attempt on trigger"},
|
| 39 |
"attempt_2": {"wait_before": 300, "description": "Retry after 5 minutes"},
|
| 40 |
-
"attempt_3": {"wait_before": 900, "description": "Retry after 15 minutes"},
|
| 41 |
-
"attempt_4": {"wait_before":
|
| 42 |
-
"attempt_5": {"wait_before":
|
| 43 |
-
"attempt_6": {"wait_before":
|
| 44 |
-
"attempt_7": {"wait_before":
|
| 45 |
-
"attempt_8": {"wait_before":
|
| 46 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
}
|
| 48 |
|
| 49 |
SYSTEM_PROMPT = """
|
|
|
|
| 37 |
POLLING_CONFIG = {
|
| 38 |
"attempt_1": {"wait_before": 0, "description": "Immediate attempt on trigger"},
|
| 39 |
"attempt_2": {"wait_before": 300, "description": "Retry after 5 minutes"},
|
| 40 |
+
"attempt_3": {"wait_before": 900, "description": "Retry after 15 minutes "},
|
| 41 |
+
"attempt_4": {"wait_before": 900, "description": "Retry after 15 minutes 30 minutes completed"},
|
| 42 |
+
"attempt_5": {"wait_before": 900, "description": "Retry after 15 minutes 45 minutes completed"},
|
| 43 |
+
"attempt_6": {"wait_before": 900, "description": "Retry after 15 minutes 1 hour completed"},
|
| 44 |
+
"attempt_7": {"wait_before": 900, "description": "Retry after 15 minutes 1 hour 15 minutes completed"},
|
| 45 |
+
"attempt_8": {"wait_before": 900, "description": "Retry after 15 minutes 1 hour 30 minutes completed"},
|
| 46 |
+
"attempt_3": {"wait_before": 900, "description": "Retry after 15 minutes 1 hour 45 minutes completed"},
|
| 47 |
+
"attempt_4": {"wait_before": 900, "description": "Retry after 15 minutes 2 hours completed"},
|
| 48 |
+
"attempt_5": {"wait_before": 900, "description": "Retry after 15 minutes 2 hours 15 minutes completed"},
|
| 49 |
+
"attempt_6": {"wait_before": 900, "description": "Retry after 15 minutes 2 hours 30 minutes completed"},
|
| 50 |
+
"attempt_7": {"wait_before": 900, "description": "Retry after 15 minutes 2 hours 45 minutes completed"},
|
| 51 |
+
"attempt_8": {"wait_before": 900, "description": "Retry after 15 minutes 3 hours completed"},
|
| 52 |
}
|
| 53 |
|
| 54 |
SYSTEM_PROMPT = """
|