File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/components/models/code Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 22import { z } from " astro:schema" ;
33import { Code } from " @astrojs/starlight/components" ;
44import Details from " ~/components/Details.astro" ;
5- import Render from " ~/components/Render.astro" ;
65
76type Props = z .infer <typeof props >;
87
@@ -19,11 +18,11 @@ export interface Env {
1918
2019export 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>; ` ;
You can’t perform that action at this time.
0 commit comments