Spaces:
Runtime error
Runtime error
File size: 807 Bytes
f571c33 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
import asyncio
from datasette.app import Datasette
import json
import pathlib
import os
static_mounts = [
(static, str((pathlib.Path(".") / static).resolve()))
for static in []
]
metadata = dict()
try:
metadata = json.load(open("metadata.json"))
except Exception:
pass
secret = os.environ.get("DATASETTE_SECRET")
true, false = True, False
ds = Datasette(
[],
["agency_classifier-agency_bios.db", "agency_classifier-agency_dataset.db", "biography_dataset-preprocessed_bios.db", "biography_dataset-sampled_bios.db", "evaluated_letters-chatgpt-cbg.db", "evaluated_letters-chatgpt-clg.db", "generated_letters-chatgpt-cbg.db"],
static_mounts=static_mounts,
metadata=metadata,
secret=secret,
cors=True,
settings={}
)
asyncio.run(ds.invoke_startup())
app = ds.app() |