Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -349,39 +349,13 @@ else:
|
|
| 349 |
|
| 350 |
print("[Axion] Building Gradio interface...")
|
| 351 |
|
| 352 |
-
# Custom CSS for dark minimal theme
|
| 353 |
-
custom_css = """
|
| 354 |
-
.gradio-container {
|
| 355 |
-
background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%) !important;
|
| 356 |
-
}
|
| 357 |
-
.main-title {
|
| 358 |
-
font-family: 'Helvetica Neue', Arial, sans-serif !important;
|
| 359 |
-
font-size: 3.5rem !important;
|
| 360 |
-
font-weight: 200 !important;
|
| 361 |
-
color: #ffffff !important;
|
| 362 |
-
text-align: center !important;
|
| 363 |
-
margin-bottom: 0.5rem !important;
|
| 364 |
-
letter-spacing: -0.02em !important;
|
| 365 |
-
}
|
| 366 |
-
.subtitle {
|
| 367 |
-
font-family: 'Helvetica Neue', Arial, sans-serif !important;
|
| 368 |
-
font-size: 1.1rem !important;
|
| 369 |
-
font-weight: 300 !important;
|
| 370 |
-
color: #888888 !important;
|
| 371 |
-
text-align: center !important;
|
| 372 |
-
margin-bottom: 2rem !important;
|
| 373 |
-
}
|
| 374 |
-
.dark-panel {
|
| 375 |
-
background: rgba(30, 30, 30, 0.6) !important;
|
| 376 |
-
border: 1px solid #333 !important;
|
| 377 |
-
border-radius: 12px !important;
|
| 378 |
-
}
|
| 379 |
-
"""
|
| 380 |
-
|
| 381 |
# Create Gradio interface
|
| 382 |
-
with gr.Blocks(title="Axion - SAR to Optical"
|
| 383 |
gr.HTML("""
|
| 384 |
-
<
|
|
|
|
|
|
|
|
|
|
| 385 |
<h1 style="font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 3.2rem; font-weight: 200; color: #ffffff; margin-bottom: 0.5rem; letter-spacing: -0.02em;">SAR to Optical Image Translation</h1>
|
| 386 |
<p style="font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 1.1rem; font-weight: 300; color: #888888;">Transform radar imagery into crystal-clear optical views using our foundation model</p>
|
| 387 |
</div>
|
|
|
|
| 349 |
|
| 350 |
print("[Axion] Building Gradio interface...")
|
| 351 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 352 |
# Create Gradio interface
|
| 353 |
+
with gr.Blocks(title="Axion - SAR to Optical") as demo:
|
| 354 |
gr.HTML("""
|
| 355 |
+
<style>
|
| 356 |
+
.gradio-container { background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%) !important; }
|
| 357 |
+
</style>
|
| 358 |
+
<div style="text-align: center; padding: 40px 20px 20px 20px;">
|
| 359 |
<h1 style="font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 3.2rem; font-weight: 200; color: #ffffff; margin-bottom: 0.5rem; letter-spacing: -0.02em;">SAR to Optical Image Translation</h1>
|
| 360 |
<p style="font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 1.1rem; font-weight: 300; color: #888888;">Transform radar imagery into crystal-clear optical views using our foundation model</p>
|
| 361 |
</div>
|