diff --git a/demo.html b/demo.html
index 2149a2f..2c9174f 100644
--- a/demo.html
+++ b/demo.html
@@ -95,7 +95,7 @@
Feature Buttons Only
Text-to-Speech Only
Translation Only
- Omni-Directional Translation
+ Translation
Direct API Usage
Custom API Examples
@@ -314,10 +314,10 @@
-
+
- 9. 🌐 Omni-Directional Translation
- Translate page content or custom text into 20+ languages with code block preservation:
+ 9. 🌐 Translation
+ Translate page content or custom text into 19 languages with code block preservation:
📄 Code Example
@@ -487,6 +487,7 @@ await readPageWithHermes();
display.scrollTop = display.scrollHeight;
try {
+ const { sendMessage } = await import('./src/chat.js');
let response = '';
for await (const chunk of sendMessage(message)) {
response += chunk;
@@ -515,7 +516,8 @@ await readPageWithHermes();
resultDiv.innerHTML = 'Generating speech...';
try {
- const result = await speakText(text, voice, 1.0);
+ const { speakTextDirect } = await import('./src/tts.js');
+ const result = await speakTextDirect(text, voice, 1.0);
// Create play/pause button
const playPauseBtn = document.createElement('button');
@@ -578,6 +580,7 @@ await readPageWithHermes();
resultDiv.innerHTML = 'Analyzing file...';
try {
+ const { uploadFile } = await import('./src/file-upload.js');
const response = await uploadFile(fileInput.files[0]);
resultDiv.innerHTML = `Analysis Result:
${response}
`;
fileInput.value = '';
@@ -601,6 +604,7 @@ await readPageWithHermes();
resultDiv.innerHTML = 'Analyzing page...';
try {
+ const { sendMessage } = await import('./src/chat.js');
const pageContent = document.body.innerText.substring(0, 3000);
const fullPrompt = `Based on this page content: "${pageContent}"\n\nUser question: ${prompt}`;
diff --git a/index.html b/index.html
index 69ba1d2..ee793fd 100644
--- a/index.html
+++ b/index.html
@@ -137,7 +137,7 @@
📖 Page-Aware - Hermes AI understands your page content and generates contextual introductions
🔊 Text-to-Speech - Convert any text to speech with multiple voice options
💾 Conversation History - Persistent chat history with delete functionality in browser localstorage
- 🌐 Translation - Pixel perfect HTML DOM transation into 18 languages!
+ 🌐 Translation - Pixel perfect HTML DOM translation into 19 languages!
🎨 Framework Compatible - Works with PicoCSS, PureCSS, Bootstrap, and more