跳到正文
DEV Community· Nivaas V·· 3 小時前AI 評分27

LocalMenuTranslator:AI 驅動的餐牌翻譯

LocalMenuTranslator 🍽️ — AI-Powered Restaurant Menu Translation

AI 導讀

LocalMenuTranslator 是一款瀏覽器版應用程式,使用 AI 翻譯模型將餐牌文字譯成泰米爾語、英語和印地語。項目以 JavaScript、Vite、Hugging Face Transformers.js 和 NLLB-200 翻譯模型構建,並整合開源 AI 模型。這個早期原型在模型檔案未快取時需要連接互聯網載入。

正文

Nivaas V

💡 The Problem

Restaurant menus can be difficult to understand when they are written in a language you don't know. This can be a frustrating experience for travelers, students, and local customers.

🚀 What I Built

LocalMenuTranslator is a browser-based web application that uses an AI translation model to translate restaurant menu text into Tamil, English, and Hindi.

Features

AI-powered menu text translation

Tamil, English, and Hindi language options

Simple web interface

Open-source AI model integration

🛠️ Tech Stack

JavaScript

Vite

Hugging Face Transformers.js

NLLB-200 translation model

🔗 Project Links

GitHub Repository: https://github.com/nivaas219/LocalMenuTranslator

Demo Video: N/A

🌱 Why Open-Source AI Matters

Open-source AI makes it possible for developers to experiment, inspect their tools, and adapt models to specific needs without depending entirely on a proprietary AI API. For a small restaurant, a menu translation tool could help customers understand dishes more easily and potentially improve the dining experience.

This project is an early prototype. The current version requires internet access to obtain model files when they are not cached. Before commercial deployment, the model's license and hosting requirements would need to be reviewed.

📚 What I Learned

Building this project helped me learn how to integrate an AI translation model into a JavaScript application, troubleshoot model-loading errors, and publish an open-source project.

I'd love to hear suggestions for improving it!

來源:DEV Community · dev.to