Skip to content

Commit 4e1177c

Browse files
fix: Fixes lint and typo
1 parent 4f4770a commit 4e1177c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/models/code/MelottsCode.astro

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import { z } from "astro:schema";
33
import { Code } from "@astrojs/starlight/components";
44
import Details from "~/components/Details.astro";
5-
import Render from "~/components/Render.astro";
65
76
type Props = z.infer<typeof props>;
87
@@ -19,11 +18,11 @@ export interface Env {
1918
2019
export default {
2120
async fetch(request, env): Promise<Response> {
22-
const { audio } = await env.AI.run('@cf/myshell-ai/melotts', {
21+
const { audio } = await env.AI.run('${name}', {
2322
prompt: 'Hello world',
2423
lang: 'en',
2524
});
26-
// Retuns the base64 encoded MP3 audio
25+
// Returns the base64 encoded MP3 audio
2726
return Response.json({ audio });
2827
},
2928
} satisfies ExportedHandler<Env>;`;

0 commit comments

Comments
 (0)