Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,8 @@ def get_secret(secret_name):
|
|
| 37 |
|
| 38 |
# Use the function to get your DEZGO_API_KEY
|
| 39 |
dezgo_api_key = get_secret('dezgo_api_key')
|
| 40 |
-
|
|
|
|
| 41 |
|
| 42 |
class ImageData(BaseModel):
|
| 43 |
sheetID: str
|
|
@@ -64,9 +65,6 @@ async def redirect_to_google_apps_script(request: Request):
|
|
| 64 |
raise HTTPException(status_code=500, detail="Error from external API.")
|
| 65 |
return response.json()
|
| 66 |
|
| 67 |
-
appsScriptsURL = 'https://script.google.com/macros/s/AKfycbw9_31pMwQVhJPezJ9qlMRCAamQKRREnun-tfT_TnS5TOwOVcfdgU1Y9xTpAv6bZuiKOA/exec'
|
| 68 |
-
dezgo_api_key = 'DEZGO-AA84DEB300562DA089E56CEA6081AE7DB601EF2D3EE4C693910E1C25E59A4FF8023D4932'
|
| 69 |
-
|
| 70 |
dezgo_headers = {
|
| 71 |
'X-Dezgo-Key': dezgo_api_key,
|
| 72 |
}
|
|
|
|
| 37 |
|
| 38 |
# Use the function to get your DEZGO_API_KEY
|
| 39 |
dezgo_api_key = get_secret('dezgo_api_key')
|
| 40 |
+
appsScriptsURL = get_secret('appsscript_url')
|
| 41 |
+
|
| 42 |
|
| 43 |
class ImageData(BaseModel):
|
| 44 |
sheetID: str
|
|
|
|
| 65 |
raise HTTPException(status_code=500, detail="Error from external API.")
|
| 66 |
return response.json()
|
| 67 |
|
|
|
|
|
|
|
|
|
|
| 68 |
dezgo_headers = {
|
| 69 |
'X-Dezgo-Key': dezgo_api_key,
|
| 70 |
}
|