Welcome to Code-Project! This repository is a diverse collection of short Python scripts, mini-games, AI integrations, and deep learning practice notebooks. It serves as a playground for experimenting with new concepts and building fun, small-scale applications.
main.py(Gemini Pro Chatbot UI): A fully functional web-based chatbot built with Streamlit and powered by Google's Generative AI (gemini-pro). It features a user-friendly chat interface and maintains conversational memory.chatbot.py: A simple, rule-based command-line interface (CLI) chatbot for practicing basic text processing and user input logic.
#1.Tic_Tac_Toe.py: A classic command-line Tic-Tac-Toe game for two players.madlibs_generator.py&story.txt: A fun Madlibs CLI game. It reads a story template fromstory.txt, identifies the placeholders (enclosed in brackets), and prompts the user to fill in the words before generating the final funny story.QrCodeGen.py: A handy utility script that uses theqrcodelibrary to generate a customized, styled QR code image (with a default setup to link to a LinkedIn profile).
Deep-Learning/: A dedicated directory containing Jupyter Notebooks for practicing machine learning and deep learning concepts. Includes files likeDL practice.ipynbandTensorCoreConcepts.ipynbfor hands-on TensorFlow learning.
Make sure you have Python installed on your system. To install the required dependencies for all the projects, run:
pip install -r requirements.txt(Note: Depending on the specific script you want to run, verify you have the corresponding libraries, such as qrcode and pillow for QrCodeGen.py.)
To run the Gemini Chatbot, you will need a valid Google API Key:
- Create a
.envfile in the root directory. - Add your Google API key to the
.envfile as follows:Your Api Key=YOUR_ACTUAL_API_KEY
- Boot up the Streamlit application:
streamlit run main.py
You can easily run any of the command-line scripts directly using Python:
python chatbot.py
python madlibs_generator.py
python "#1.Tic_Tac_Toe.py"
python QrCodeGen.py