Spaces:
Sleeping
Sleeping
Update app/routers/base.py
Browse files7 unmodified lines8910111213141516171819202122237 unmodified linesdef home():updated = get_latest_timestamp()return HTMLResponse(f"""<html><head><title>Pegos Data API</title></head><body style='background:#0b1221;color:#f1f1f1;text-align:center;font-family:Inter;padding:40px'><h1>🚀 Pegos Data API</h1><p>HF flat dataset ile çalışan tahmin servisi</p><p><b>Son Güncelleme:</b> {updated}</p><p><a href='/health'>/health</a> |<a href='/latest'>/latest</a> |<a href='/history'>/history</a> |<a href='/predict'>/predict</a> |<a href='/signal'>/signal</a></p></body></html>""")7 unmodified lines891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081097 unmodified linesdef home():updated = get_latest_timestamp()return HTMLResponse(f"""<!DOCTYPE html><html lang="tr"><head><meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><title>🚀 Pegos Data API</title><style>@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');body {{background: radial-gradient(circle at 20% 30%, #0d1b2a 0%, #000814 100%);color: #f8f9fa;font-family: 'Inter', sans-serif;display: flex;flex-direction: column;align-items: center;justify-content: center;height: 100vh;margin: 0;text-align: center;}}h1 {{font-size: 2.6rem;margin-bottom: 0.3rem;color: #80ffdb;text-shadow: 0 0 10px rgba(128,255,219,0.4);}}p {{color: #adb5bd;font-size: 1.05rem;}}.updated {{color: #dee2e6;font-size: 0.95rem;margin-top: 0.6rem;}}.grid {{display: flex;flex-wrap: wrap;justify-content: center;gap: 16px;margin-top: 2rem;}}.card {{background: rgba(255,255,255,0.05);border: 1px solid rgba(255,255,255,0.1);border-radius: 16px;padding: 1rem 1.6rem;transition: all 0.3s ease;box-shadow: 0 0 12px rgba(0,0,0,0.4);}}.card:hover {{transform: translateY(-4px);box-shadow: 0 0 25px rgba(128,255,219,0.2);border-color: #80ffdb;}}a {{color: #80ffdb;text-decoration: none;font-weight: 600;letter-spacing: 0.4px;}}a:hover {{color: #48cae4;}}footer {{position: absolute;bottom: 12px;font-size: 0.85rem;color: #868e96;}}</style></head><body><h1>🚀 Pegos Data API</h1><p>HF flat dataset ile çalışan yapay zekâ destekli blockchain tahmin servisi</p><p class="updated"><strong>Son Güncelleme:</strong> {updated}</p><div class="grid"><div class="card"><a href="/health">/health</a></div><div class="card"><a href="/latest">/latest</a></div><div class="card"><a href="/history">/history</a></div><div class="card"><a href="/predict">/predict</a></div><div class="card"><a href="/signal">/signal</a></div></div><footer>© 2025 Pegos AI | Built with ❤️ by Caner Giden</footer></body></html>""")
app/routers/base.py+98-12