This package is made for beginners who are appearing for interview preparation and to crack coding interviews
Project description
Interview Buddy
Interview Buddy is designed for beginners who are new to coding which has two ai-models in it code-llama-7b for code generation and python-code-explainer which makes it useful for generating code and understanding code for both beginner and intermediate programmers
Installation
Install interview-buddy with cmd
pip install interview-buddy==0.4
Initialization for Basic Methods
from interview.interview import Interview
interview = Interview(data=10)
Initialization for Generating Code
from interview.interview import Interview
interview = Code_Generator("Generate")
Initialize the Interview object with necessary data
Methods
a. factorial() This method calculates the factorial of a given number.
Parameters:
- data: Integer, the number for which factorial is to be calculated. Example:
result = interview.factorial()
print("Factorial:", result)
Parameters:
- User_input: String, Enter the query which want to be generated. Example:
result = interview.generate_code("Write me a code for Binary Tree")
print("Factorial:", result)
Supported Methods
List all the supported methods along with a brief description of what each method does.
fibonacci_series(): Generates a Fibonacci series.
palindrom(): Checks if a string is a palindrome.
bubble_sort(): Sorts a list using the bubble sort algorithm.
insertion_sort(): Sorts a list using the insertion sort algorithm.
anagram(): Checks if two strings are anagrams.
binary_search(): Performs binary search on a sorted list.
min_(): Finds the minimum value in a list.
max_(): Finds the maximum value in a list.
reverse(): Reverses a list.
generate_code(): Which is used to generate code
Installation
Install interview-buddy with cmd
pip install interview-buddy
Authors
- @RoboJunior 👨💻
Dependencies
- Transformers
- Ctransformers
Transformers - Installation
pip install transformers
Ctranformers - Installation
#Base ctransformers with no GPU acceleration
pip install ctransformers>=0.2.24
#Or with CUDA GPU acceleration
pip install ctransformers[cuda]>=0.2.24
#Or with ROCm GPU acceleration
CT_HIPBLAS=1 pip install ctransformers>=0.2.24 --no-binary ctransformers
#Or with Metal GPU acceleration for macOS systems
CT_METAL=1 pip install ctransformers>=0.2.24 --no-binary ctransformers
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file interview_buddy-0.4-py3-none-any.whl
.
File metadata
- Download URL: interview_buddy-0.4-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad4301844aa38b9e0e38af07eb3c42f411cecb62195c49718a3e1a8d49c35ac3 |
|
MD5 | 2288bbc1fba5e1b7f4d60805b196f558 |
|
BLAKE2b-256 | dead6dbd0fc996d83865bb2bb6d07c35136a7ae3521b04f7caa17c08ae4d50d1 |