Download index.php from ghostai1/EAGLEAI: direct link, hf CLI and curl.
- Browser
- Download file 5.26 kB
-
https://huggingface.co/spaces/ghostai1/EAGLEAI/resolve/main/index.php
- Command line
-
hf download hf://spaces/ghostai1/EAGLEAI/index.php
-
curl -L -o index.php https://huggingface.co/spaces/ghostai1/EAGLEAI/resolve/main/index.php
5.26 kB
| // GHOST AI presents EAGLE MOON: Lunar Agentic ISR | |
| // === CONFIG === | |
| $title = "GHOST AI: EAGLE MOON Demo"; | |
| $mode = isset($_GET['mode']) ? htmlspecialchars($_GET['mode']) : 'passive'; // Full toggle | |
| $timestamp = date('Y-m-d\TH:i:s\Z'); // Full UTC | |
| $azimuth = rand(0, 360); // Sim RESY | |
| $elevation = rand(0, 90); | |
| $crater_count = rand(10, 50); | |
| $confidence = number_format(rand(80, 99) / 100, 2); | |
| $rf_anomalies = json_encode([['freq' => 2200000000, 'power' => -45.2]]); | |
| $cv_anomaly = json_encode(['crater_count' => $crater_count, 'new_feature' => false, 'confidence' => $confidence]); | |
| // Full JSON spit (dynamic, no omission) | |
| $spit_json = json_encode([ | |
| "obs_id" => "EAGLE-MOON-01", | |
| "timestamp" => $timestamp, | |
| "azimuth_deg" => $azimuth, | |
| "elevation_deg" => $elevation, | |
| "rf_anomalies" => json_decode($rf_anomalies, true), | |
| "cv_anomaly" => json_decode($cv_anomaly, true) | |
| ], JSON_PRETTY_PRINT); | |
| // === FULL HTML OUTPUT (embedded PHP, no external files) | |
| echo '<!DOCTYPE html>'; | |
| echo '<html lang="en">'; | |
| echo '<head>'; | |
| echo ' <meta charset="UTF-8">'; | |
| echo ' <meta name="viewport" content="width=device-width, initial-scale=1.0">'; | |
| echo ' <meta name="description" content="GHOST AI presents EAGLE MOON: Agentic Lunar ISR Demo">'; | |
| echo ' <title>' . htmlspecialchars($title) . '</title>'; | |
| echo ' <style>'; | |
| echo ' body { font-family: Arial, sans-serif; background-color: #121212; color: #e0e0e0; margin: 0; padding: 20px; text-align: center; }'; | |
| echo ' h1 { color: #00ff88; font-size: 2.5em; margin-bottom: 10px; }'; | |
| echo ' h2 { color: #00ccff; font-size: 2em; margin-bottom: 20px; }'; | |
| echo ' p { font-size: 1.2em; margin-bottom: 20px; }'; | |
| echo ' table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }'; | |
| echo ' th, td { border: 1px solid #333; padding: 10px; text-align: left; }'; | |
| echo ' th { background-color: #1e1e1e; color: #00ff88; }'; | |
| echo ' pre { background-color: #1e1e1e; padding: 15px; border-radius: 5px; text-align: left; overflow-x: auto; }'; | |
| echo ' a { color: #00ccff; text-decoration: none; }'; | |
| echo ' a:hover { text-decoration: underline; }'; | |
| echo ' .toggle { margin-bottom: 20px; }'; | |
| echo ' .toggle a { padding: 10px 20px; background-color: #1e1e1e; border: 1px solid #333; border-radius: 5px; margin: 0 10px; }'; | |
| echo ' .toggle a.active { background-color: #00ccff; color: #121212; }'; | |
| echo ' footer { margin-top: 40px; font-size: 0.8em; color: #999; }'; | |
| echo ' /* ADA: Keyboard focus */'; | |
| echo ' a:focus, button:focus { outline: 2px solid #00ff88; }'; | |
| echo ' </style>'; | |
| echo '</head>'; | |
| echo '<body>'; | |
| echo ' <h1>GHOST AI PRESENTS</h1>'; | |
| echo ' <h2>EAGLE MOON</h2>'; | |
| echo ' <p>Agentic Lunar ISR • Passive RF/CV • Always Watching</p>'; | |
| echo ' <p><strong>NASA SBIR Z1.01 / Z14.01 Ready • March 10, 2026</strong></p>'; | |
| echo ' <hr style="border-color: #333;">'; | |
| echo ' <div class="toggle">'; | |
| echo ' <a href="?mode=passive" class="' . ($mode == 'passive' ? 'active' : '') . '">Passive Mode</a>'; | |
| echo ' <a href="?mode=active" class="' . ($mode == 'active' ? 'active' : '') . '">Active Mode</a>'; | |
| echo ' </div>'; | |
| echo ' <h3>Features</h3>'; | |
| echo ' <table>'; | |
| echo ' <tr><th>Feature</th><th>Description</th></tr>'; | |
| echo ' <tr><td>Passive Mode</td><td>Zero TX — RTL-SDR + IR cam</td></tr>'; | |
| echo ' <tr><td>Agentic AI</td><td>Llama 3 classifies: "New crater? Alert."</td></tr>'; | |
| echo ' <tr><td>RESY Tracking</td><td>360° gear + tilt lens (1° accuracy)</td></tr>'; | |
| echo ' <tr><td>Multi-Spectrum</td><td>VIS + IR + RF fusion</td></tr>'; | |
| echo ' <tr><td>Re-Imaging</td><td>Stable Diffusion fills shadows</td></tr>'; | |
| echo ' <tr><td>Master Program</td><td>Always spitting JSON to command</td></tr>'; | |
| echo ' </table>'; | |
| echo ' <h3>Live Master Program Spit-Out</h3>'; | |
| echo ' <pre>' . htmlspecialchars($spit_json) . '</pre>'; | |
| echo ' <h3>NASA SBIR Fit</h3>'; | |
| echo ' <ul style="list-style-type: none; padding: 0;">'; | |
| echo ' <li><strong>Z1.01</strong>: Autonomous Systems</li>'; | |
| echo ' <li><strong>Z14.01</strong>: Regolith Excavation</li>'; | |
| echo ' <li><strong>S13.05</strong>: In Situ Instruments</li>'; | |
| echo ' </ul>'; | |
| echo ' <p><strong>Phase I</strong>: $150K — 6-month lunar sim</p>'; | |
| echo ' <p><strong>Phase II</strong>: $750K — Artemis install</p>'; | |
| echo ' <hr style="border-color: #333;">'; | |
| echo ' <h3>Installation & Usage</h3>'; | |
| echo ' <p>Clone the repo: <code>git clone https://huggingface.co/spaces/ghostai1/eagle-moon-demo</code></p>'; | |
| echo ' <p>Install: <code>pip install -r requirements.txt</code></p>'; | |
| echo ' <p>Run: <code>python app.py</code></p>'; | |
| echo ' <p>Upload moon image for CV detection. Toggle mode. Watch JSON spit.</p>'; | |
| echo ' <hr style="border-color: #333;">'; | |
| echo ' <h3>License</h3>'; | |
| echo ' <p>Apache 2.0 — Permissive for NASA/DoD dual-use.</p>'; | |
| echo ' <h3>Contact</h3>'; | |
| echo ' <p>ghostai1@proton.me</p>'; | |
| echo ' <p>huggingface.co/ghostai1</p>'; | |
| echo ' <p>github.com/ghostai1/eagle-moon</p>'; | |
| echo ' <footer>© 2025 GHOST AI. The Moon is yours.</footer>'; | |
| echo '</body>'; | |
| echo '</html>'; | |