Numainda is a Knowledge bot designed to engage and educate on Pakistan's rich legal and parliamentary heritage. Drawing on the Constitution of Pakistan, the Elections Act 2017, and the latest parliamentary proceedings, Numainda shares fascinating legal and legislative facts in a fun, engaging manner. Our mission is to demystify Pakistan's legal documents and parliamentary proceedings, making them accessible and enjoyable.
Clone the repository:
git clone https://github.com/yourgithubusername/numainda.git
cd numainda
Install dependencies:
pip install -r requirements.txt
Configure environment variables:
Create a .env
file in the project root and add your Twitter and OpenAI API keys:
TWITTER_CONSUMER_KEY=your_twitter_consumer_key
TWITTER_CONSUMER_SECRET=your_twitter_consumer_secret
TWITTER_ACCESS_TOKEN=your_access_token
TWITTER_ACCESS_TOKEN_SECRET=your_access_token_secret
OPENAI_API_KEY=your_openai_api_key
Create a .streamlit/secrets.toml file:
ASSISTANT_ID="<assistant-id>"
OPEN_AI_API_KEY="<api-key>"
To run Numainda streamlit, execute:
streamlit run st_numainda.py
This script initiates the bot, allowing it to start tweeting and responding to queries.
We welcome contributions! If you have suggestions for new features, improvements, or bug fixes, feel free to:
git checkout -b feature/your_feature_name
)git commit -am 'Add some feature'
)git push origin feature/your_feature_name
)This project is licensed under the MIT License.