We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f4770a commit 4e1177cCopy full SHA for 4e1177c
src/components/models/code/MelottsCode.astro
@@ -2,7 +2,6 @@
2
import { z } from "astro:schema";
3
import { Code } from "@astrojs/starlight/components";
4
import Details from "~/components/Details.astro";
5
-import Render from "~/components/Render.astro";
6
7
type Props = z.infer<typeof props>;
8
@@ -19,11 +18,11 @@ export interface Env {
19
18
20
export default {
21
async fetch(request, env): Promise<Response> {
22
- const { audio } = await env.AI.run('@cf/myshell-ai/melotts', {
+ const { audio } = await env.AI.run('${name}', {
23
prompt: 'Hello world',
24
lang: 'en',
25
});
26
- // Retuns the base64 encoded MP3 audio
+ // Returns the base64 encoded MP3 audio
27
return Response.json({ audio });
28
},
29
} satisfies ExportedHandler<Env>;`;
0 commit comments