Spaces:
Running
Running
I want to create my own AI that can read auto-generated code, clean it up, improve its structure, and make it more accurate and efficient. Teach me step by step:
Browse filesWhere and how to build this kind of AI (platforms, frameworks, tools).
What languages or libraries I should use (like Python, AI/ML libraries, or code-parsing tools).
How to train or fine-tune it so it understands code quality and can rewrite or optimize code automatically.
How to test and deploy it so it can process code in real time.
Explain everything simply but in detail, with practical examples and exercises. Treat me as a beginner who wants to actually build and run this AI, not just understand the concept
- README.md +8 -5
- getting-started.html +198 -0
- index.html +252 -18
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: CodeCleaner AI Wizard π§ββοΈ
|
| 3 |
+
colorFrom: blue
|
| 4 |
+
colorTo: purple
|
| 5 |
+
emoji: π³
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://deepsite.hf.co).
|
getting-started.html
ADDED
|
@@ -0,0 +1,198 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
+
<style>
|
| 11 |
+
.step-card {
|
| 12 |
+
transition: all 0.3s ease;
|
| 13 |
+
}
|
| 14 |
+
.step-card:hover {
|
| 15 |
+
transform: translateY(-5px);
|
| 16 |
+
box-shadow: 0 10px 25px rgba(118, 75, 162, 0.3);
|
| 17 |
+
}
|
| 18 |
+
.gradient-text {
|
| 19 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 20 |
+
-webkit-background-clip: text;
|
| 21 |
+
background-clip: text;
|
| 22 |
+
color: transparent;
|
| 23 |
+
}
|
| 24 |
+
</style>
|
| 25 |
+
</head>
|
| 26 |
+
<body class="bg-gray-900 text-white min-h-screen">
|
| 27 |
+
<div class="container mx-auto px-4 py-12">
|
| 28 |
+
<!-- Navigation -->
|
| 29 |
+
<nav class="flex justify-between items-center mb-12">
|
| 30 |
+
<a href="index.html" class="text-2xl font-bold gradient-text flex items-center">
|
| 31 |
+
<i data-feather="wand" class="mr-2"></i> CodeCleaner AI
|
| 32 |
+
</a>
|
| 33 |
+
<div class="flex space-x-4">
|
| 34 |
+
<a href="index.html" class="hover:text-purple-300 transition">Home</a>
|
| 35 |
+
<a href="#" class="text-purple-400 font-medium">Get Started</a>
|
| 36 |
+
<a href="#" class="hover:text-purple-300 transition">Resources</a>
|
| 37 |
+
<a href="#" class="hover:text-purple-300 transition">Community</a>
|
| 38 |
+
</div>
|
| 39 |
+
</nav>
|
| 40 |
+
|
| 41 |
+
<!-- Hero Section -->
|
| 42 |
+
<div class="text-center mb-16">
|
| 43 |
+
<h1 class="text-4xl md:text-5xl font-bold mb-6">Your <span class="gradient-text">Step-by-Step</span> Guide</h1>
|
| 44 |
+
<p class="text-xl text-gray-300 max-w-3xl mx-auto">
|
| 45 |
+
Follow these steps to build your own AI code cleaner from scratch
|
| 46 |
+
</p>
|
| 47 |
+
</div>
|
| 48 |
+
|
| 49 |
+
<!-- Steps -->
|
| 50 |
+
<div class="grid md:grid-cols-3 gap-8 mb-16">
|
| 51 |
+
<!-- Step 1 -->
|
| 52 |
+
<div class="bg-gray-800 rounded-xl p-6 step-card">
|
| 53 |
+
<div class="w-14 h-14 rounded-full bg-indigo-600 flex items-center justify-center mb-4 text-2xl font-bold">1</div>
|
| 54 |
+
<h3 class="text-xl font-semibold mb-3">Setup Your Environment</h3>
|
| 55 |
+
<p class="text-gray-300 mb-4">Install Python and essential tools:</p>
|
| 56 |
+
<ul class="space-y-2 text-sm">
|
| 57 |
+
<li class="flex items-start">
|
| 58 |
+
<i data-feather="check" class="text-green-400 mr-2 mt-1"></i>
|
| 59 |
+
<span>Install Python 3.8+</span>
|
| 60 |
+
</li>
|
| 61 |
+
<li class="flex items-start">
|
| 62 |
+
<i data-feather="check" class="text-green-400 mr-2 mt-1"></i>
|
| 63 |
+
<span>Set up VS Code with Python extension</span>
|
| 64 |
+
</li>
|
| 65 |
+
<li class="flex items-start">
|
| 66 |
+
<i data-feather="check" class="text-green-400 mr-2 mt-1"></i>
|
| 67 |
+
<span>Create virtual environment</span>
|
| 68 |
+
</li>
|
| 69 |
+
</ul>
|
| 70 |
+
<div class="mt-6 bg-gray-700 p-4 rounded-lg">
|
| 71 |
+
<code class="text-sm text-purple-300">
|
| 72 |
+
python -m venv aienv<br>
|
| 73 |
+
source aienv/bin/activate<br>
|
| 74 |
+
pip install torch transformers
|
| 75 |
+
</code>
|
| 76 |
+
</div>
|
| 77 |
+
</div>
|
| 78 |
+
|
| 79 |
+
<!-- Step 2 -->
|
| 80 |
+
<div class="bg-gray-800 rounded-xl p-6 step-card">
|
| 81 |
+
<div class="w-14 h-14 rounded-full bg-indigo-600 flex items-center justify-center mb-4 text-2xl font-bold">2</div>
|
| 82 |
+
<h3 class="text-xl font-semibold mb-3">Collect Training Data</h3>
|
| 83 |
+
<p class="text-gray-300 mb-4">Gather code examples:</p>
|
| 84 |
+
<ul class="space-y-2 text-sm">
|
| 85 |
+
<li class="flex items-start">
|
| 86 |
+
<i data-feather="github" class="text-purple-400 mr-2 mt-1"></i>
|
| 87 |
+
<span>Scrape GitHub for code samples</span>
|
| 88 |
+
</li>
|
| 89 |
+
<li class="flex items-start">
|
| 90 |
+
<i data-feather="edit" class="text-purple-400 mr-2 mt-1"></i>
|
| 91 |
+
<span>Create "before/after" pairs</span>
|
| 92 |
+
</li>
|
| 93 |
+
<li class="flex items-start">
|
| 94 |
+
<i data-feather="database" class="text-purple-400 mr-2 mt-1"></i>
|
| 95 |
+
<span>Store in structured format (JSON)</span>
|
| 96 |
+
</li>
|
| 97 |
+
</ul>
|
| 98 |
+
<div class="mt-6 bg-gray-700 p-4 rounded-lg">
|
| 99 |
+
<code class="text-sm text-purple-300">
|
| 100 |
+
# Example training pair<br>
|
| 101 |
+
{<br>
|
| 102 |
+
"before": "def calc(x,y):...",<br>
|
| 103 |
+
"after": "def calculate(...",<br>
|
| 104 |
+
"language": "python"<br>
|
| 105 |
+
}
|
| 106 |
+
</code>
|
| 107 |
+
</div>
|
| 108 |
+
</div>
|
| 109 |
+
|
| 110 |
+
<!-- Step 3 -->
|
| 111 |
+
<div class="bg-gray-800 rounded-xl p-6 step-card">
|
| 112 |
+
<div class="w-14 h-14 rounded-full bg-indigo-600 flex items-center justify-center mb-4 text-2xl font-bold">3</div>
|
| 113 |
+
<h3 class="text-xl font-semibold mb-3">Fine-tune the Model</h3>
|
| 114 |
+
<p class="text-gray-300 mb-4">Train your AI code cleaner:</p>
|
| 115 |
+
<ul class="space-y-2 text-sm">
|
| 116 |
+
<li class="flex items-start">
|
| 117 |
+
<i data-feather="cpu" class="text-yellow-400 mr-2 mt-1"></i>
|
| 118 |
+
<span>Use CodeT5 or GPT-3 base model</span>
|
| 119 |
+
</li>
|
| 120 |
+
<li class="flex items-start">
|
| 121 |
+
<i data-feather="activity" class="text-yellow-400 mr-2 mt-1"></i>
|
| 122 |
+
<span>Fine-tune with your dataset</span>
|
| 123 |
+
</li>
|
| 124 |
+
<li class="flex items-start">
|
| 125 |
+
<i data-feather="bar-chart-2" class="text-yellow-400 mr-2 mt-1"></i>
|
| 126 |
+
<span>Evaluate with test cases</span>
|
| 127 |
+
</li>
|
| 128 |
+
</ul>
|
| 129 |
+
<div class="mt-6 bg-gray-700 p-4 rounded-lg">
|
| 130 |
+
<code class="text-sm text-purple-300">
|
| 131 |
+
from transformers import T5ForConditionalGeneration<br>
|
| 132 |
+
model = T5ForConditionalGeneration.from_pretrained("Salesforce/codet5-base")<br>
|
| 133 |
+
# Training loop here...
|
| 134 |
+
</code>
|
| 135 |
+
</div>
|
| 136 |
+
</div>
|
| 137 |
+
</div>
|
| 138 |
+
|
| 139 |
+
<!-- Additional Resources -->
|
| 140 |
+
<div class="max-w-4xl mx-auto bg-gray-800 rounded-xl p-8 mb-16">
|
| 141 |
+
<h2 class="text-2xl font-bold mb-6 text-center text-indigo-300">Additional Resources</h2>
|
| 142 |
+
<div class="grid sm:grid-cols-2 gap-6">
|
| 143 |
+
<div class="bg-gray-700 p-5 rounded-lg">
|
| 144 |
+
<div class="flex items-center mb-3">
|
| 145 |
+
<i data-feather="book-open" class="text-blue-400 mr-3"></i>
|
| 146 |
+
<h3 class="text-lg font-semibold">Learning Materials</h3>
|
| 147 |
+
</div>
|
| 148 |
+
<ul class="space-y-2">
|
| 149 |
+
<li><a href="#" class="text-purple-300 hover:underline">Transformers for Code</a></li>
|
| 150 |
+
<li><a href="#" class="text-purple-300 hover:underline">Code Quality Metrics</a></li>
|
| 151 |
+
<li><a href="#" class="text-purple-300 hover:underline">AST Parsing Guide</a></li>
|
| 152 |
+
</ul>
|
| 153 |
+
</div>
|
| 154 |
+
<div class="bg-gray-700 p-5 rounded-lg">
|
| 155 |
+
<div class="flex items-center mb-3">
|
| 156 |
+
<i data-feather="download-cloud" class="text-green-400 mr-3"></i>
|
| 157 |
+
<h3 class="text-lg font-semibold">Templates & Tools</h3>
|
| 158 |
+
</div>
|
| 159 |
+
<ul class="space-y-2">
|
| 160 |
+
<li><a href="#" class="text-purple-300 hover:underline">Starter Notebook</a></li>
|
| 161 |
+
<li><a href="#" class="text-purple-300 hover:underline">Dataset Collector</a></li>
|
| 162 |
+
<li><a href="#" class="text-purple-300 hover:underline">Evaluation Scripts</a></li>
|
| 163 |
+
</ul>
|
| 164 |
+
</div>
|
| 165 |
+
</div>
|
| 166 |
+
</div>
|
| 167 |
+
|
| 168 |
+
<!-- Call to Action -->
|
| 169 |
+
<div class="text-center">
|
| 170 |
+
<h2 class="text-2xl font-bold mb-6 text-indigo-300">Ready to start coding?</h2>
|
| 171 |
+
<a href="#" class="inline-block bg-indigo-600 hover:bg-indigo-700 text-white font-bold py-3 px-8 rounded-full transition-all transform hover:scale-105">
|
| 172 |
+
<i data-feather="terminal" class="inline mr-2"></i>
|
| 173 |
+
Launch Tutorial Notebook
|
| 174 |
+
</a>
|
| 175 |
+
</div>
|
| 176 |
+
</div>
|
| 177 |
+
|
| 178 |
+
<script>
|
| 179 |
+
feather.replace();
|
| 180 |
+
|
| 181 |
+
// Animate steps on scroll
|
| 182 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 183 |
+
const steps = document.querySelectorAll('.step-card');
|
| 184 |
+
|
| 185 |
+
steps.forEach((step, index) => {
|
| 186 |
+
setTimeout(() => {
|
| 187 |
+
step.style.opacity = '1';
|
| 188 |
+
step.style.transform = 'translateY(0)';
|
| 189 |
+
}, index * 200);
|
| 190 |
+
|
| 191 |
+
step.style.opacity = '0';
|
| 192 |
+
step.style.transform = 'translateY(20px)';
|
| 193 |
+
step.style.transition = 'all 0.5s ease';
|
| 194 |
+
});
|
| 195 |
+
});
|
| 196 |
+
</script>
|
| 197 |
+
</body>
|
| 198 |
+
</html>
|
index.html
CHANGED
|
@@ -1,19 +1,253 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>CodeCleaner AI Wizard</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
+
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
|
| 11 |
+
<style>
|
| 12 |
+
.code-container {
|
| 13 |
+
font-family: 'Courier New', monospace;
|
| 14 |
+
}
|
| 15 |
+
.gradient-bg {
|
| 16 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 17 |
+
}
|
| 18 |
+
.glow {
|
| 19 |
+
box-shadow: 0 0 15px rgba(118, 75, 162, 0.5);
|
| 20 |
+
}
|
| 21 |
+
.animate-float {
|
| 22 |
+
animation: float 6s ease-in-out infinite;
|
| 23 |
+
}
|
| 24 |
+
@keyframes float {
|
| 25 |
+
0% { transform: translateY(0px); }
|
| 26 |
+
50% { transform: translateY(-20px); }
|
| 27 |
+
100% { transform: translateY(0px); }
|
| 28 |
+
}
|
| 29 |
+
</style>
|
| 30 |
+
</head>
|
| 31 |
+
<body class="bg-gray-900 text-white min-h-screen">
|
| 32 |
+
<div id="vanta-bg" class="absolute w-full h-full"></div>
|
| 33 |
+
<div class="relative z-10 container mx-auto px-4 py-12">
|
| 34 |
+
<!-- Header -->
|
| 35 |
+
<header class="text-center mb-16">
|
| 36 |
+
<h1 class="text-5xl md:text-6xl font-bold mb-6 text-transparent bg-clip-text bg-gradient-to-r from-purple-400 to-indigo-600">
|
| 37 |
+
CodeCleaner AI Wizard π§ββοΈ
|
| 38 |
+
</h1>
|
| 39 |
+
<p class="text-xl md:text-2xl text-purple-200 max-w-3xl mx-auto">
|
| 40 |
+
Your magical assistant for transforming messy code into clean, efficient masterpieces
|
| 41 |
+
</p>
|
| 42 |
+
</header>
|
| 43 |
+
|
| 44 |
+
<!-- Main Content -->
|
| 45 |
+
<div class="grid md:grid-cols-2 gap-8 mb-16">
|
| 46 |
+
<!-- Left Column - Steps -->
|
| 47 |
+
<div class="space-y-8">
|
| 48 |
+
<div class="gradient-bg p-6 rounded-xl glow">
|
| 49 |
+
<div class="flex items-center mb-4">
|
| 50 |
+
<div class="w-10 h-10 rounded-full bg-indigo-600 flex items-center justify-center mr-4">
|
| 51 |
+
<span class="font-bold text-xl">1</span>
|
| 52 |
+
</div>
|
| 53 |
+
<h3 class="text-2xl font-semibold">Platforms & Tools</h3>
|
| 54 |
+
</div>
|
| 55 |
+
<ul class="space-y-3 pl-14">
|
| 56 |
+
<li class="flex items-start">
|
| 57 |
+
<i data-feather="check-circle" class="text-green-400 mr-2 mt-1"></i>
|
| 58 |
+
<span>Google Colab (free cloud GPUs)</span>
|
| 59 |
+
</li>
|
| 60 |
+
<li class="flex items-start">
|
| 61 |
+
<i data-feather="check-circle" class="text-green-400 mr-2 mt-1"></i>
|
| 62 |
+
<span>Visual Studio Code with Python</span>
|
| 63 |
+
</li>
|
| 64 |
+
<li class="flex items-start">
|
| 65 |
+
<i data-feather="check-circle" class="text-green-400 mr-2 mt-1"></i>
|
| 66 |
+
<span>GitHub for version control</span>
|
| 67 |
+
</li>
|
| 68 |
+
<li class="flex items-start">
|
| 69 |
+
<i data-feather="check-circle" class="text-green-400 mr-2 mt-1"></i>
|
| 70 |
+
<span>FastAPI for web deployment</span>
|
| 71 |
+
</li>
|
| 72 |
+
</ul>
|
| 73 |
+
</div>
|
| 74 |
+
|
| 75 |
+
<div class="gradient-bg p-6 rounded-xl glow">
|
| 76 |
+
<div class="flex items-center mb-4">
|
| 77 |
+
<div class="w-10 h-10 rounded-full bg-indigo-600 flex items-center justify-center mr-4">
|
| 78 |
+
<span class="font-bold text-xl">2</span>
|
| 79 |
+
</div>
|
| 80 |
+
<h3 class="text-2xl font-semibold">Languages & Libraries</h3>
|
| 81 |
+
</div>
|
| 82 |
+
<ul class="space-y-3 pl-14">
|
| 83 |
+
<li class="flex items-start">
|
| 84 |
+
<i data-feather="code" class="text-yellow-300 mr-2 mt-1"></i>
|
| 85 |
+
<span>Python (main language)</span>
|
| 86 |
+
</li>
|
| 87 |
+
<li class="flex items-start">
|
| 88 |
+
<i data-feather="cpu" class="text-yellow-300 mr-2 mt-1"></i>
|
| 89 |
+
<span>PyTorch or TensorFlow (ML)</span>
|
| 90 |
+
</li>
|
| 91 |
+
<li class="flex items-start">
|
| 92 |
+
<i data-feather="box" class="text-yellow-300 mr-2 mt-1"></i>
|
| 93 |
+
<span>HuggingFace Transformers</span>
|
| 94 |
+
</li>
|
| 95 |
+
<li class="flex items-start">
|
| 96 |
+
<i data-feather="search" class="text-yellow-300 mr-2 mt-1"></i>
|
| 97 |
+
<span>Tree-sitter (code parsing)</span>
|
| 98 |
+
</li>
|
| 99 |
+
</ul>
|
| 100 |
+
</div>
|
| 101 |
+
</div>
|
| 102 |
+
|
| 103 |
+
<!-- Right Column - Steps -->
|
| 104 |
+
<div class="space-y-8">
|
| 105 |
+
<div class="gradient-bg p-6 rounded-xl glow">
|
| 106 |
+
<div class="flex items-center mb-4">
|
| 107 |
+
<div class="w-10 h-10 rounded-full bg-indigo-600 flex items-center justify-center mr-4">
|
| 108 |
+
<span class="font-bold text-xl">3</span>
|
| 109 |
+
</div>
|
| 110 |
+
<h3 class="text-2xl font-semibold">Training Process</h3>
|
| 111 |
+
</div>
|
| 112 |
+
<ul class="space-y-3 pl-14">
|
| 113 |
+
<li class="flex items-start">
|
| 114 |
+
<i data-feather="database" class="text-pink-400 mr-2 mt-1"></i>
|
| 115 |
+
<span>Collect code examples (GitHub)</span>
|
| 116 |
+
</li>
|
| 117 |
+
<li class="flex items-start">
|
| 118 |
+
<i data-feather="git-merge" class="text-pink-400 mr-2 mt-1"></i>
|
| 119 |
+
<span>Create "before/after" pairs</span>
|
| 120 |
+
</li>
|
| 121 |
+
<li class="flex items-start">
|
| 122 |
+
<i data-feather="activity" class="text-pink-400 mr-2 mt-1"></i>
|
| 123 |
+
<span>Fine-tune CodeT5 model</span>
|
| 124 |
+
</li>
|
| 125 |
+
<li class="flex items-start">
|
| 126 |
+
<i data-feather="repeat" class="text-pink-400 mr-2 mt-1"></i>
|
| 127 |
+
<span>Use RLHF (human feedback)</span>
|
| 128 |
+
</li>
|
| 129 |
+
</ul>
|
| 130 |
+
</div>
|
| 131 |
+
|
| 132 |
+
<div class="gradient-bg p-6 rounded-xl glow">
|
| 133 |
+
<div class="flex items-center mb-4">
|
| 134 |
+
<div class="w-10 h-10 rounded-full bg-indigo-600 flex items-center justify-center mr-4">
|
| 135 |
+
<span class="font-bold text-xl">4</span>
|
| 136 |
+
</div>
|
| 137 |
+
<h3 class="text-2xl font-semibold">Testing & Deployment</h3>
|
| 138 |
+
</div>
|
| 139 |
+
<ul class="space-y-3 pl-14">
|
| 140 |
+
<li class="flex items-start">
|
| 141 |
+
<i data-feather="check-square" class="text-blue-300 mr-2 mt-1"></i>
|
| 142 |
+
<span>Unit tests with PyTest</span>
|
| 143 |
+
</li>
|
| 144 |
+
<li class="flex items-start">
|
| 145 |
+
<i data-feather="cloud-lightning" class="text-blue-300 mr-2 mt-1"></i>
|
| 146 |
+
<span>Deploy on HuggingFace</span>
|
| 147 |
+
</li>
|
| 148 |
+
<li class="flex items-start">
|
| 149 |
+
<i data-feather="globe" class="text-blue-300 mr-2 mt-1"></i>
|
| 150 |
+
<span>Build API with FastAPI</span>
|
| 151 |
+
</li>
|
| 152 |
+
<li class="flex items-start">
|
| 153 |
+
<i data-feather="monitor" class="text-blue-300 mr-2 mt-1"></i>
|
| 154 |
+
<span>Create VS Code extension</span>
|
| 155 |
+
</li>
|
| 156 |
+
</ul>
|
| 157 |
+
</div>
|
| 158 |
+
</div>
|
| 159 |
+
</div>
|
| 160 |
+
|
| 161 |
+
<!-- Interactive Demo Section -->
|
| 162 |
+
<div class="max-w-4xl mx-auto bg-gray-800 rounded-xl p-6 glow">
|
| 163 |
+
<h2 class="text-3xl font-bold mb-6 text-center text-indigo-300">Try Our Live Demo</h2>
|
| 164 |
+
|
| 165 |
+
<div class="grid md:grid-cols-2 gap-6">
|
| 166 |
+
<div>
|
| 167 |
+
<h3 class="text-xl font-semibold mb-3 text-purple-200">Input (Messy Code)</h3>
|
| 168 |
+
<div class="code-container bg-gray-900 p-4 rounded-lg h-64 overflow-auto">
|
| 169 |
+
<pre class="text-red-300"><code class="language-python">def calculate_sum(x,y):
|
| 170 |
+
s=0
|
| 171 |
+
for i in range(x,y+1):
|
| 172 |
+
s+=i
|
| 173 |
+
return s
|
| 174 |
+
# bad spacing and naming
|
| 175 |
+
</code></pre>
|
| 176 |
+
</div>
|
| 177 |
+
</div>
|
| 178 |
+
<div>
|
| 179 |
+
<h3 class="text-xl font-semibold mb-3 text-purple-200">Output (Clean Code)</h3>
|
| 180 |
+
<div class="code-container bg-gray-900 p-4 rounded-lg h-64 overflow-auto">
|
| 181 |
+
<pre class="text-green-300"><code class="language-python">def calculate_range_sum(start: int, end: int) -> int:
|
| 182 |
+
"""Calculate the sum of integers in a range (inclusive)."""
|
| 183 |
+
return sum(range(start, end + 1))
|
| 184 |
+
# Improved with type hints, docstring, and better naming
|
| 185 |
+
</code></pre>
|
| 186 |
+
</div>
|
| 187 |
+
</div>
|
| 188 |
+
</div>
|
| 189 |
+
|
| 190 |
+
<div class="mt-6 flex justify-center">
|
| 191 |
+
<button class="bg-indigo-600 hover:bg-indigo-700 text-white font-bold py-3 px-8 rounded-full transition-all transform hover:scale-105 flex items-center">
|
| 192 |
+
<i data-feather="zap" class="mr-2"></i>
|
| 193 |
+
Clean My Code Now
|
| 194 |
+
</button>
|
| 195 |
+
</div>
|
| 196 |
+
</div>
|
| 197 |
+
|
| 198 |
+
<!-- Next Steps -->
|
| 199 |
+
<div class="mt-16 text-center">
|
| 200 |
+
<h2 class="text-3xl font-bold mb-6 text-indigo-300">Ready to Begin Your Journey?</h2>
|
| 201 |
+
<div class="flex flex-wrap justify-center gap-4">
|
| 202 |
+
<a href="#" class="bg-purple-700 hover:bg-purple-800 text-white px-6 py-3 rounded-lg transition-all">
|
| 203 |
+
<i data-feather="download" class="inline mr-2"></i> Get Started Guide
|
| 204 |
+
</a>
|
| 205 |
+
<a href="#" class="bg-indigo-700 hover:bg-indigo-800 text-white px-6 py-3 rounded-lg transition-all">
|
| 206 |
+
<i data-feather="code" class="inline mr-2"></i> Example Notebooks
|
| 207 |
+
</a>
|
| 208 |
+
<a href="#" class="bg-gray-700 hover:bg-gray-600 text-white px-6 py-3 rounded-lg transition-all">
|
| 209 |
+
<i data-feather="message-square" class="inline mr-2"></i> Join Community
|
| 210 |
+
</a>
|
| 211 |
+
</div>
|
| 212 |
+
</div>
|
| 213 |
+
</div>
|
| 214 |
+
|
| 215 |
+
<script>
|
| 216 |
+
VANTA.NET({
|
| 217 |
+
el: "#vanta-bg",
|
| 218 |
+
mouseControls: true,
|
| 219 |
+
touchControls: true,
|
| 220 |
+
gyroControls: false,
|
| 221 |
+
minHeight: 200.00,
|
| 222 |
+
minWidth: 200.00,
|
| 223 |
+
scale: 1.00,
|
| 224 |
+
scaleMobile: 1.00,
|
| 225 |
+
color: 0x764ba2,
|
| 226 |
+
backgroundColor: 0x111827,
|
| 227 |
+
points: 8.00,
|
| 228 |
+
maxDistance: 20.00,
|
| 229 |
+
spacing: 16.00
|
| 230 |
+
});
|
| 231 |
+
</script>
|
| 232 |
+
<script>
|
| 233 |
+
feather.replace();
|
| 234 |
+
|
| 235 |
+
// Simple animation for the demo button
|
| 236 |
+
document.querySelector('button').addEventListener('mouseenter', function() {
|
| 237 |
+
anime({
|
| 238 |
+
targets: this,
|
| 239 |
+
scale: 1.05,
|
| 240 |
+
duration: 200
|
| 241 |
+
});
|
| 242 |
+
});
|
| 243 |
+
|
| 244 |
+
document.querySelector('button').addEventListener('mouseleave', function() {
|
| 245 |
+
anime({
|
| 246 |
+
targets: this,
|
| 247 |
+
scale: 1,
|
| 248 |
+
duration: 200
|
| 249 |
+
});
|
| 250 |
+
});
|
| 251 |
+
</script>
|
| 252 |
+
</body>
|
| 253 |
</html>
|