Delete logo.py
Browse files
logo.py
DELETED
|
@@ -1,29 +0,0 @@
|
|
| 1 |
-
import base64
|
| 2 |
-
import os
|
| 3 |
-
|
| 4 |
-
def get_logo_html(path="logo.png"):
|
| 5 |
-
if os.path.exists(path):
|
| 6 |
-
with open(path, "rb") as f:
|
| 7 |
-
b64 = base64.b64encode(f.read()).decode("utf-8")
|
| 8 |
-
ext = path.rsplit(".", 1)[-1].lower()
|
| 9 |
-
mime = "image/png" if ext == "png" else f"image/{ext}"
|
| 10 |
-
img_tag = f'<img src="data:{mime};base64,{b64}" alt="BrainGPT Logo">'
|
| 11 |
-
else:
|
| 12 |
-
img_tag = """
|
| 13 |
-
<svg width="64" height="64" viewBox="0 0 64 64" fill="none"
|
| 14 |
-
style="filter: drop-shadow(0 0 12px #ff6a00);"
|
| 15 |
-
xmlns="http://www.w3.org/2000/svg">
|
| 16 |
-
<circle cx="32" cy="32" r="30" fill="#1a0800" stroke="#ff6a00" stroke-width="2"/>
|
| 17 |
-
<text x="50%" y="54%" dominant-baseline="middle" text-anchor="middle"
|
| 18 |
-
font-size="28" fill="#ff6a00">B</text>
|
| 19 |
-
</svg>"""
|
| 20 |
-
|
| 21 |
-
return f"""
|
| 22 |
-
<div class="braingpt-header">
|
| 23 |
-
{img_tag}
|
| 24 |
-
<div>
|
| 25 |
-
<div class="braingpt-title">BrainGPT</div>
|
| 26 |
-
<div class="braingpt-sub">NEURAL ENGINE ONLINE - POWERED BY QWEN2</div>
|
| 27 |
-
</div>
|
| 28 |
-
</div>
|
| 29 |
-
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|