Mastering Iterative Prompting for Optimized AI Code Generation
โข
1
Write 100 tests concisely that if passed will make every requirements and conditions and every related point mentioned by me throughout this complete conversation be fully addressed and adjust the code accordingly so it passes all tests.
Step 1: Generate the prompt that if sent to you will make you adjust the script so it meets each and every of the criteria it needs to meet to be 100% bug free and perfect.
Step 2: adjust the script following the steps and instructions in the prompt created in Step 1.
use CoT logic extensively to output the longest and richest and most beautiful possible verison of this app, call it MelindaAI Autoimage and make it be able to create 7 up to images with different prompts *the promtp of the user with differnt word order except for the first words that are fixed
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0" ...
Insert your code here
!pip install googlesearch-python requests
from googlesearch import search
import requests
query = "Glaucoma"
for url in search(f"{query} site:nih.gov filetype:pdf", 20):
if url.endswith(".pdf"):
with open(url.split("/")[-1], "wb") as f: f.write(requests.get(url).content)
print("โ
" + url.split("/")[-1])
print("Done!")