We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
modal.Secret.from_name(gmp_api_key)
1 parent cb4dd9b commit d6516d2Copy full SHA for d6516d2
main.py
@@ -26,7 +26,7 @@ def generate_historical_significance(place: pastforward.PastforwardPlace) -> str
26
return f"{place.name} is historically significant" if random.random() < 0.5 else ""
27
28
29
-@app.function(secrets=[modal.Secret.from_dotenv()])
+@app.function(secrets=[modal.Secret.from_name(gmp_api_key)])
30
@modal.asgi_app()
31
def api():
32
fastapi_app = fastapi.FastAPI()
0 commit comments