Team Ai
Apppublic

Cyfer-ap/AI-Coding-Tutor

sourceHugging Faceupdated 1y agoView on Hugging Face
1likes
optimizer.py6 linesDownload Raw Back to backend
1from backend.prompts import PROMPT_TEMPLATES, call_llm2 3def optimize_code(user_code, language):4    prompt = PROMPT_TEMPLATES["optimize"].format(code=user_code, lang=language)5    return call_llm(prompt)6