displays huggingface metadata on infopage if present

This commit is contained in:
nai-degen 2023-04-17 14:19:33 -07:00
parent 9afa4570ec
commit 1d69078514
1 changed files with 5 additions and 1 deletions

View File

@ -54,12 +54,16 @@ function getInfoPageHtml(host: string) {
config: listConfig(),
sha: process.env.COMMIT_SHA?.slice(0, 7) || "dev",
};
const title = process.env.SPACE_ID
? `${process.env.SPACE_AUTHOR_NAME} / ${process.env.SPACE_TITLE}`
: "OAI Reverse Proxy";
const pageBody = `<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>OpenAI Reverse Proxy</title>
<title>${title}</title>
</head>
<body style="font-family: sans-serif; background-color: #f0f0f0; padding: 1em;"
${infoPageHeaderHtml}