Spaces:
Build error
Build error
Download install.py from Gajanand1/Language_Translation: direct link, hf CLI and curl.
- Browser
- Download file 976 Bytes
-
https://huggingface.co/spaces/Gajanand1/Language_Translation/resolve/main/install.py
- Command line
-
hf download hf://spaces/Gajanand1/Language_Translation/install.py
-
curl -L -o install.py https://huggingface.co/spaces/Gajanand1/Language_Translation/resolve/main/install.py
976 Bytes
| #!/usr/bin/env python3 | |
| import subprocess | |
| import sys | |
| print("🔧 Installing Voice Translator (Simplified)...") | |
| print("="*60) | |
| # Install required packages | |
| packages = [ | |
| 'SpeechRecognition==3.10.0', | |
| 'gTTS==2.4.0', | |
| 'requests==2.31.0', | |
| 'streamlit==1.28.0', | |
| 'pyttsx3==2.90', | |
| 'pydub==0.25.1', | |
| 'numpy==1.24.3', | |
| ] | |
| for package in packages: | |
| print(f"Installing {package}...") | |
| subprocess.check_call([sys.executable, '-m', 'pip', 'install', package]) | |
| print("\n" + "="*60) | |
| print("✅ Installation complete!") | |
| print("\n🚀 How to run:") | |
| print("1. Console app: python voice_translator_final.py") | |
| print("2. Web app: streamlit run web_translator_final.py") | |
| print("\n💡 For microphone on Windows:") | |
| print("- Install PyAudio from: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio") | |
| print("- Or use text input if microphone doesn't work") | |
| print("\n🎯 Features:") | |
| print("- No complex dependencies") | |
| "- Works on all platforms" | |
| "- Audio via system player" |