Drwaish/DebugAndDocstringPrompt

Zain Ali Nasir

Software Engineer
AI Developer
AWS Lambda
OpenAI

Lambda Function

Setup Repo

git clone https://github.com/Drwaish/DebugAndDocstringPrompt.git cd DebugAndDocstringPrompt
Install dependencies
Paste openai api key for smooth running of code.
Open Repository in Visual Studio Code.
For locally test lambda function.
python lambda_function.py
For remotely test lambda function.

Follow following steps

Enter url in 'URL' variable
Paste your code in 'code' variable
Uncomment your request choice
Timeout for POST request is 5 seconds. If Internet connection is slow increase timeout span. Then
python script.py

Debug Function

User hit the lambda function with this payload.

Payload

Write Docstring

Write Docstring in Numpy Style

Payload return the docstring in google style.

Write Docstring in Google Style

Payload return the docstring in google style.

Important Note:

Use script.py to test your lambda.

Deploy on AWS Lambda and automate your work.
Partner With Zain Ali
View Services

More Projects by Zain Ali