We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 700d36d commit 6ce598dCopy full SHA for 6ce598d
main.py
@@ -26,9 +26,9 @@ 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_name(gmp_api_key)])
+@app.local_entrypoint(secrets=[modal.Secret.from_name(gmp_api_key)])
30
@modal.asgi_app()
31
-def api():
+def main():
32
fastapi_app = fastapi.FastAPI()
33
gmaps = googlemaps.Client(key=os.environ[gmp_api_key])
34
0 commit comments