Inquisitive:
AI Powered Multilingual Question Generator
This repository contains a Generative AI project created using Gemini API.
It is a simple multilingual AI powered questions generator based on the news article provided.
Project is developed under the Generative AI Applications using Vertex AI
course by SmartBridge in collaboration with Google.
Inquisitive:
AI Powered Multilingual Question Generator
Our client, NewsSphere, is a leading news organization dedicated to expanding its global reach and enhancing audience engagement. With a vast amount of content published daily in multiple languages, the organization faces the considerable challenge of manually creating quizzes and assessments for each article. This process is not only time-consuming but also prone to inconsistencies across different languages and cultural contexts.
Develop an AI-driven question generator for client to create relevant questions across multiple languages.
Implement language detection, translation, and question generation using Generative models and Machine translation services.
User Input: User submits a news article in any language.
Language Detection: The app utilizes the Translation API to detect the language of the submitted content.
Translation to English: If the content is not in English, the app translates it into English using the Translation API.
Question Generation: The app calls the Gemini API to generate diverse and contextually relevant questions based on the English version of the news article.
Translation Back: The generated questions are translated back into the original language of the news article using the Translation API.
Output: The app presents the questions in the original language to the user.
Website:
Demo Input:
Multilingual Abilities:
Automated Language Detection and Translation:
Cultural Sensitivity and Accuracy:
Streamlined Quiz Creation:
Enhanced User Engagement:
Improved Efficiency and Accuracy:
Clone Repository:
git clone https://github.com/Bbs1412/GenAI_SB
cd GenAI_SB
Create and activate python environment:
python -m venv env
.envScriptsactivate
Install the required libraries:
pip install -r requirements.txt
Generate Gemini-API key.
Create a file 'api.env' in current directory and save the API-key in it:
PALM_API_KEY="your_key"
Run the app:
streamlit run app.py
Any contributions or suggestions are welcome!