You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository contains the source code for a simple chat web application with translation functionality. Users can input messages in their preferred language, which are then translated and displayed in the recipient's chosen language.
Description
Technologies Used
Streamlit: For building the web application interface.
Firebase Realtime Database: For storing and retrieving chat messages.
MyMemory Translation API: For translating messages between different languages.
Features
Users can input messages in their preferred language.
Messages are translated into the recipient's chosen language.
Support for multiple languages, including English, Spanish, French, Sinhala, Tamil, and Chinese.
Setup Instructions
Clone the repository: git clone <repository_url>
Install the required dependencies: pip install -r requirements.txt
Create a Firebase project and set up a Realtime Database.
Obtain the credentials for accessing the Firebase Realtime Database and save them in a credentials.json file.
Set the Firebase Realtime Database URL as an environment variable named FIREBASE_DATABASE_URL.
Run the Streamlit app: streamlit run app.py
Usage
Access the Streamlit app through the provided URL.
Enter your name and select your preferred language.
Choose the recipient's language.
Type your message in the sender's text box and click "Send (Sender)".
View the translated message in the receiver's text box.
About
This repository contains the source code for a simple chat web application with translation functionality. Users can input messages in their preferred language, which are then translated and displayed in the recipient's chosen language.