Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to start talkingbot frondend #1517

Open
raj-ritu17 opened this issue Apr 26, 2024 · 5 comments
Open

unable to start talkingbot frondend #1517

raj-ritu17 opened this issue Apr 26, 2024 · 5 comments
Assignees

Comments

@raj-ritu17
Copy link

followed the guidelines mentioned here:

https://github.com/intel/intel-extension-for-transformers/tree/main/intel_extension_for_transformers/neural_chat/ui/customized/talkingbot

process failed during dependencies

npm WARN deprecated @types/sass@1.45.0: This is a stub types definition. sass provides its own type definitions, so you do not need this installed.
npm WARN deprecated minimatch@0.0.5: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
npm ERR! code 1
npm ERR! path /home/intel/ritu/talkingBot/intel-extension-for-transformers/intel_extension_for_transformers/neural_chat/ui/customized/talkingbot/node_modules/@sveltejs/kit
npm ERR! command failed
npm ERR! command sh -c node postinstall.js
npm ERR! file:///home/intel/ritu/talkingBot/intel-extension-for-transformers/intel_extension_for_transformers/neural_chat/ui/customized/talkingbot/node_modules/@sveltejs/kit/postinstall.js:7
npm ERR!        const cwd = process.env.INIT_CWD ?? process.cwd();
npm ERR!                                          ^
npm ERR!
npm ERR! SyntaxError: Unexpected token '?'
npm ERR!     at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
npm ERR!     at async link (internal/modules/esm/module_job.js:42:21)

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/intel/.npm/_logs/2024-04-26T07_31_20_839Z-debug-0.log
@WenjiaoYue
Copy link
Contributor

Hi, could you please confirm your node version? I'm using the latest node [node: v20.11.1, npm: 10.1.0], and it runs smoothly. It seems the issue might be due to version incompatibility. Would you consider upgrading your node version to see if the problem persists? Versions 18 and above should all be compatible.

@raj-ritu17
Copy link
Author

@WenjiaoYue, upgrading the npm version solve dependency problem.
Now, I have started the server, but it doesn't start any communication.
For example, I am using the default template and starting the voice record but it doesn't return any response.

npm version:
image

image

server output:

 1:10:12 PM [vite-plugin-svelte] /home/intel/ritu/talkingBot/intel-extension-for-transformers/intel_extension_for_transformers/neural_chat/ui/customized/talkingbot/src/lib/components/talkbot/bot-template-card.svelte:26:11 Bot_template_card has unused export property 'knowledge'. If it is for external reference only, please consider using `export const knowledge`
8/3/2023 --- CollectionType {
  '0': 'Custom',
  '1': 'Library',
  '2': 'TemplateCustom',
  '3': 'TemplateLibrary',
  Custom: 0,
  Library: 1,
  TemplateCustom: 2,
  TemplateLibrary: 3
} 0

╭── 🌼 daisyUI 3.9.4 https://daisyui.com
│
├── 2 themes are enabled. How to add more themes:
│   https://daisyui.com/docs/themes
│
╰── ⭐️ Star daisyUI project on GitHub: https://github.com/saadeghi/daisyui

1:10:19 PM [vite-plugin-svelte] /home/intel/ritu/talkingBot/intel-extension-for-transformers/intel_extension_for_transformers/neural_chat/ui/customized/talkingbot/src/lib/components/talkbot/bot-template-card.svelte:26:11 Bot_template_card has unused export property 'knowledge'. If it is for external reference only, please consider using `export const knowledge`
1:10:19 PM [vite] ✨ new dependencies optimized: svelte-notifications
1:10:19 PM [vite] ✨ optimized dependencies changed. reloading
1:10:20 PM [vite-plugin-svelte] /home/intel/ritu/talkingBot/intel-extension-for-transformers/intel_extension_for_transformers/neural_chat/ui/customized/talkingbot/src/lib/components/talkbot/bot-template-card.svelte:26:11 Bot_template_card has unused export property 'knowledge'. If it is for external reference only, please consider using `export const knowledge`
1:10:20 PM [vite-plugin-svelte] /home/intel/ritu/talkingBot/intel-extension-for-transformers/intel_extension_for_transformers/neural_chat/ui/customized/talkingbot/src/lib/components/talkbot/bot-template-card.svelte:26:11 Bot_template_card has unused export property 'knowledge'. If it is for external reference only, please consider using `export const knowledge`
8/3/2023 --- CollectionType {
  '0': 'Custom',
  '1': 'Library',
  '2': 'TemplateCustom',
  '3': 'TemplateLibrary',
  Custom: 0,
  Library: 1,
  TemplateCustom: 2,
  TemplateLibrary: 3
} 0
1:10:57 PM [vite-plugin-svelte] /home/intel/ritu/talkingBot/intel-extension-for-transformers/intel_extension_for_transformers/neural_chat/ui/customized/talkingbot/src/lib/modules/chat/chat-message.svelte:83:1 Unused CSS selector "audio::-webkit-media-controls-panel"
1:10:57 PM [vite-plugin-svelte] /home/intel/ritu/talkingBot/intel-extension-for-transformers/intel_extension_for_transformers/neural_chat/ui/customized/talkingbot/src/lib/modules/chat/chat-audio.svelte:23:11 Chat_audio has unused export property 'right'. If it is for external reference only, please consider using `export const right`
1:10:57 PM [vite] ✨ new dependencies optimized: sse.js, nanoid
1:10:57 PM [vite] ✨ optimized dependencies changed. reloading
1:10:58 PM [vite-plugin-svelte] /home/intel/ritu/talkingBot/intel-extension-for-transformers/intel_extension_for_transformers/neural_chat/ui/customized/talkingbot/src/lib/components/talkbot/bot-template-card.svelte:26:11 Bot_template_card has unused export property 'knowledge'. If it is for external reference only, please consider using `export const knowledge`
1:10:58 PM [vite-plugin-svelte] /home/intel/ritu/talkingBot/intel-extension-for-transformers/intel_extension_for_transformers/neural_chat/ui/customized/talkingbot/src/lib/modules/chat/chat-message.svelte:83:1 Unused CSS selector "audio::-webkit-media-controls-panel"
1:10:58 PM [vite-plugin-svelte] /home/intel/ritu/talkingBot/intel-extension-for-transformers/intel_extension_for_transformers/neural_chat/ui/customized/talkingbot/src/lib/modules/chat/chat-audio.svelte:23:11 Chat_audio has unused export property 'right'. If it is for external reference only, please consider using `export const right`
8/3/2023 --- CollectionType {
  '0': 'Custom',
  '1': 'Library',
  '2': 'TemplateCustom',
  '3': 'TemplateLibrary',
  Custom: 0,
  Library: 1,
  TemplateCustom: 2,
  TemplateLibrary: 3
} 0
1:11:03 PM [vite-plugin-svelte] /home/intel/ritu/talkingBot/intel-extension-for-transformers/intel_extension_for_transformers/neural_chat/ui/customized/talkingbot/src/lib/components/talkbot/bot-template-card.svelte:26:11 Bot_template_card has unused export property 'knowledge'. If it is for external reference only, please consider using `export const knowledge`

@WenjiaoYue
Copy link
Contributor

Now it works fine. The reason for the unresponsive was that browsers only allow microphone and camera access on HTTPS websites by default. You can add the current IP to the "Insecure origins treated as secure" list. After reloading, the browser will prompt to allow microphone access.
https://stackoverflow.com/questions/52759992/how-to-access-camera-and-microphone-in-chrome-without-https
image

@raj-ritu17
Copy link
Author

@WenjiaoYue, that's great
now, I can record the audio but still it is unresponsive. it stops whenever trying to generate a response.

image

@WenjiaoYue WenjiaoYue removed their assignment May 14, 2024
@WenjiaoYue
Copy link
Contributor

WenjiaoYue commented May 14, 2024

It looks like there might be some issues with the backend return values. Maybe Liang could help you confirm. I've already informed him, but he's been quite busy with tasks lately. He'll help you solve it when he's available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants