enzostvs HF staff commited on
Commit
4e76014
Β·
1 Parent(s): 9f54aa5

try to fix metadata

Browse files
src/app.html CHANGED
@@ -4,7 +4,6 @@
4
  <meta charset="utf-8" />
5
  <link rel="icon" href="%sveltekit.assets%/favicon.png" />
6
  <meta name="viewport" content="width=device-width, initial-scale=1" />
7
- %sveltekit.head%
8
  <link rel="preconnect" href="https://fonts.googleapis.com" />
9
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
10
  <link
@@ -12,7 +11,7 @@
12
  rel="stylesheet"
13
  />
14
  <title>LoRA Studio</title>
15
- <!-- <meta
16
  name="description"
17
  content="LoRA Studio 🎨 is your new all-in-one generative art AI platform! Explore thousands of fun LoRA Models, share your AI-generated art and get involved with a dynamic community of creators! New models arrive every day, in direct connection with Hugging Face! πŸ€—"
18
  />
@@ -21,18 +20,19 @@
21
  property="og:description"
22
  content="LoRA Studio 🎨 is your new all-in-one generative art AI platform! Explore thousands of fun LoRA Models, share your AI-generated art and get involved with a dynamic community of creators! New models arrive every day, in direct connection with Hugging Face! πŸ€—"
23
  />
24
- <meta property="og:image" content="https://enzostvs-lora-studio.hf.space/metadata.png" /> -->
25
  <meta property="og:url" content="https://enzostvs-lora-studio.hf.space/" />
26
  <meta property="og:type" content="website" />
27
  <meta name="twitter:card" content="summary_large_image" />
28
  <meta name="twitter:site" content="@huggingface" />
29
  <meta name="twitter:creator" content="@huggingface" />
30
- <meta name="twitter:title" content="LoRA Studio" />
31
- <meta
32
  name="twitter:description"
33
  content="LoRA Studio 🎨 is your new all-in-one generative art AI platform! Explore thousands of fun LoRA Models, share your AI-generated art and get involved with a dynamic community of creators! New models arrive every day, in direct connection with Hugging Face! πŸ€—"
34
- />
35
- <meta name="twitter:image" content="https://enzostvs-lora-studio.hf.space/metadata.png" />
 
36
  <link
37
  ref="stylesheet"
38
  href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900&display=swap"
 
4
  <meta charset="utf-8" />
5
  <link rel="icon" href="%sveltekit.assets%/favicon.png" />
6
  <meta name="viewport" content="width=device-width, initial-scale=1" />
 
7
  <link rel="preconnect" href="https://fonts.googleapis.com" />
8
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
9
  <link
 
11
  rel="stylesheet"
12
  />
13
  <title>LoRA Studio</title>
14
+ <meta
15
  name="description"
16
  content="LoRA Studio 🎨 is your new all-in-one generative art AI platform! Explore thousands of fun LoRA Models, share your AI-generated art and get involved with a dynamic community of creators! New models arrive every day, in direct connection with Hugging Face! πŸ€—"
17
  />
 
20
  property="og:description"
21
  content="LoRA Studio 🎨 is your new all-in-one generative art AI platform! Explore thousands of fun LoRA Models, share your AI-generated art and get involved with a dynamic community of creators! New models arrive every day, in direct connection with Hugging Face! πŸ€—"
22
  />
23
+ <meta property="og:image" content="https://enzostvs-lora-studio.hf.space/metadata.png" />
24
  <meta property="og:url" content="https://enzostvs-lora-studio.hf.space/" />
25
  <meta property="og:type" content="website" />
26
  <meta name="twitter:card" content="summary_large_image" />
27
  <meta name="twitter:site" content="@huggingface" />
28
  <meta name="twitter:creator" content="@huggingface" />
29
+ <meta name="twitter:title" content="LoRA Studio" /> -->
30
+ <!-- <meta
31
  name="twitter:description"
32
  content="LoRA Studio 🎨 is your new all-in-one generative art AI platform! Explore thousands of fun LoRA Models, share your AI-generated art and get involved with a dynamic community of creators! New models arrive every day, in direct connection with Hugging Face! πŸ€—"
33
+ /> -->
34
+ <!-- <meta name="twitter:image" content="https://enzostvs-lora-studio.hf.space/metadata.png" />
35
+ %sveltekit.head%
36
  <link
37
  ref="stylesheet"
38
  href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900&display=swap"
src/routes/api/models/[id]/+server.ts CHANGED
@@ -121,7 +121,7 @@ export async function GET({ url, params } : RequestEvent) {
121
 
122
  if (browser) {
123
  const page = await browser.newPage();
124
- await page.goto("https://" + process.env.SPACE_HOST?.split(",")[0] + '/metadata/models/' + model.id, {
125
  waitUntil: 'networkidle0',
126
  });
127
 
 
121
 
122
  if (browser) {
123
  const page = await browser.newPage();
124
+ await page.goto("https://lorastudio.co/metadata/models/" + model.id, {
125
  waitUntil: 'networkidle0',
126
  });
127