This application translates text to English using Google’s Gemini model and Streamlit for the user interface.
This platform allows users to translate text to English using a generative AI model. The platform leverages a Google Gemini-based text processing pipeline for efficient and accurate translations.
- Streamlit: For creating the user interface.
- Google Gemini: A generative AI model used for translating text.
- LangChain: Used to handle the prompt and chain for the translation task.
- Pandas: For data manipulation and processing. Features
- Description: Users can enter text they want to translate into English.
- Input Fields:
- Text: The text that the user wants to translate.
- Function: The Google Gemini model processes the input text and generates the translated text.
- UI Element:
- A text area for entering the text to be translated.
- A button to trigger the translation action.
- Output: The translated text is displayed.
https://victoris-jpg3zajivdafw3u72e6sa7.streamlit.app/
I utilize Google’s Gemini translation model to convert text into English by providing it with specific prompts.
Base URL
http://127.0.0.1:5000
- URL:
/translate - Method:
POST - Description:
Translates the provided text to English.
{
"data": "text that you want to translate"
}
- Code:
200 OK
{
"Translated text": "translated text here"
}
- Code:
400 Bad Request - Content:
{ "error": "Input JSON must contain 'text' field" }