{"id":23091713,"url":"https://github.com/hadarisas/generative_ai_app","last_synced_at":"2025-04-30T22:51:37.094Z","repository":{"id":267163290,"uuid":"899736329","full_name":"hadarisas/generative_ai_app","owner":"hadarisas","description":" Generative AI App is a modern web application that combines AI-powered language translation and image generation capabilities. Built with React and Vite, it offers an intuitive interface for translating text and generating images using Hugging Face's AI models.","archived":false,"fork":false,"pushed_at":"2025-01-04T23:38:01.000Z","size":78,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T20:43:09.246Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://generative-ai-app-nine.vercel.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hadarisas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-06T22:39:40.000Z","updated_at":"2025-01-14T18:04:26.000Z","dependencies_parsed_at":"2024-12-08T19:36:57.349Z","dependency_job_id":"d645718f-fa70-4e6b-b765-53e6a723e7c8","html_url":"https://github.com/hadarisas/generative_ai_app","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.125,"last_synced_commit":"a5e93a060bed004ab4a72a5a91de51abdbe0a879"},"previous_names":["hadarisas/generative_ai_app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadarisas%2Fgenerative_ai_app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadarisas%2Fgenerative_ai_app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadarisas%2Fgenerative_ai_app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadarisas%2Fgenerative_ai_app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hadarisas","download_url":"https://codeload.github.com/hadarisas/generative_ai_app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251795387,"owners_count":21645020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-16T21:19:15.760Z","updated_at":"2025-04-30T22:51:37.075Z","avatar_url":"https://github.com/hadarisas.png","language":"JavaScript","readme":"# AI Translation \u0026 Image Generation App\n\nGenerative AI App is a modern web application that combines AI-powered language translation and image generation capabilities. Built with React and Vite, it offers an intuitive interface for translating text and generating images using Hugging Face's AI models.\n\n🔗 **[Live Demo](https://generative-ai-app-nine.vercel.app/)**\n\n## ⚠️ Important Notes\n\n**This project is for demonstration purposes only!**\n\n- The current implementation includes the API key in the frontend, which is **not secure for production use**\n- Image generation may take up to 30-60 seconds, please be patient while the AI model processes your request\n- All API calls should be routed through a secure backend server in a production environment\n- Implement proper rate limiting and security measures for production use\n\n## 🚀 Features\n\n- **AI Translation**: Translate text with cultural context using Mixtral-8x7B model\n- **Image Generation**: Create images from text descriptions using FLUX.1 model (Note: Generation takes time)\n- **Dual Functionality**: Switch between translation and image generation modes\n- **Interactive UI**: Real-time responses with loading indicators\n- **Fullscreen Image View**: Examine generated images in detail\n- **Download Capability**: Save generated images locally\n\n## 🛠️ Tech Stack\n\n- **Frontend Framework**: React + Vite\n- **Styling**: Tailwind CSS\n- **AI Integration**: Hugging Face Inference API\n- **State Management**: React Hooks\n- **UI Components**: Custom components with responsive design\n\n## 📋 Prerequisites\n\n- Node.js (v16 or higher)\n- npm or yarn\n- Hugging Face API key\n\n## 🔧 Installation\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/yourusername/lingualvision.git\ncd lingualvision\n```\n\n2. Install dependencies:\n\n```bash\nnpm install\n```\n\nor\n\n```bash\nyarn install\n```\n\n3. 🔑 Environment Variables:\n\nCreate a `.env` file with the following variables:\n\n```\nREACT_APP_HF_ACCESS_TOKEN=your_huggingface_api_key\n```\n\n4. Start the development server:\n\n```bash\nnpm run dev\n```\n\nor\n\n```bash\nyarn dev\n```\n\n## 🎯 Usage\n\n1. **Translation Mode**:\n\n   - Select the \"Translation\" tab\n   - Enter the output language (e.g. French) and enter the text you want to translate (e.g. \"French: Hello, how are you?\")\n   - Receive translation with cultural context\n\n2. **Image Generation Mode**:\n   - Switch to \"Image Generation\" tab\n   - Describe the image you want to create\n   - View, download, or examine in fullscreen\n\n\n\n## 🙏 Acknowledgments\n\n- [Hugging Face](https://huggingface.co/) for AI models\n- [Mixtral-8x7B](https://huggingface.co/mistralai/Mixtral-8x7B-Instruct-v0.1) for translation\n- [FLUX.1](https://huggingface.co/black-forest-labs/FLUX.1-dev) for image generation\n\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadarisas%2Fgenerative_ai_app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhadarisas%2Fgenerative_ai_app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadarisas%2Fgenerative_ai_app/lists"}