diff --git a/index.html b/index.html index 533dead..bd1ba72 100644 --- a/index.html +++ b/index.html @@ -4,10 +4,69 @@ - AI Podcast Generator + OpenPod + -
Loading...
+
+
+
+
+
+
+
+
diff --git a/src/components/CustomPodcast.tsx b/src/components/CustomPodcast.tsx index 016b3b8..6af83bf 100644 --- a/src/components/CustomPodcast.tsx +++ b/src/components/CustomPodcast.tsx @@ -260,8 +260,16 @@ export function CustomPodcast() { socket.emit("generate_podcast", payload); }); + socket.on("progress", (data: { progress: number; message: string }) => { + setProgress(data.progress); + setStatusMessage(data.message); + }); + + socket.on("status", (message: string) => { + setStatusMessage(message); + }); + socket.on("error", (error: { message: string }) => { - console.error("Socket error:", error); toast({ title: "Error", description: error.message,