Skip to content

Commit 6ce598d

Browse files
1 parent 700d36d commit 6ce598d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ def generate_historical_significance(place: pastforward.PastforwardPlace) -> str
2626
return f"{place.name} is historically significant" if random.random() < 0.5 else ""
2727

2828

29-
@app.function(secrets=[modal.Secret.from_name(gmp_api_key)])
29+
@app.local_entrypoint(secrets=[modal.Secret.from_name(gmp_api_key)])
3030
@modal.asgi_app()
31-
def api():
31+
def main():
3232
fastapi_app = fastapi.FastAPI()
3333
gmaps = googlemaps.Client(key=os.environ[gmp_api_key])
3434

0 commit comments

Comments
 (0)