AEGIS Bio-Digital Lab commited on
Commit
c97df43
·
1 Parent(s): 006814a

🧬 AEGIS Bio-Digital Lab 10 - Complete Integration

Browse files

- Added Mission Statement: Sovereign Timeline Project
- Integrated Investment Call with strategic partnership info
- Added Sovereign Quadrant Engine visualization
- Integrated AEGIS logo with professional styling
- Enhanced bio-digital synthesis interface
- Updated branding and visual design
- Added comprehensive contact information

Ready for strategic investment discussions and research partnerships.

Files changed (1) hide show
  1. frontend/webui/hf_demo.py +41 -8
frontend/webui/hf_demo.py CHANGED
@@ -14,6 +14,7 @@ from backend.models.lcmdiffusion_setting import DiffusionTask
14
  from backend.safety_check import is_safe_image
15
  from pprint import pprint
16
  from transformers import pipeline
 
17
 
18
  lcm_text_to_image = LCMTextToImage()
19
  lcm_lora = LCMLora(
@@ -39,6 +40,28 @@ def encode_pil_to_base64_new(pil_image):
39
  gr.processing_utils.encode_pil_to_base64 = encode_pil_to_base64_new
40
 
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  def predict(
43
  prompt,
44
  steps,
@@ -201,8 +224,8 @@ def _get_footer_message() -> str:
201
  version = f"<center><p> {APP_VERSION} "
202
  footer_msg = version + (
203
  ' © 2025 | Gaston Software Solutions Tec | '
204
- 'Tel/WhatsApp: <a href="https://wa.me/256755274944" target="_blank">+256755274944</a> | '
205
- 'Email: <a href="mailto:gastonsoftwaresolution234@gmail.com">gastonsoftwaresolution234@gmail.com</a> | '
206
  'AEGIS Bio-Digital Lab 10</p></center>'
207
  )
208
  warning_msg = """
@@ -213,17 +236,27 @@ def _get_footer_message() -> str:
213
  <p><em>For research and simulation purposes.</em></p>
214
  </div><br>
215
  """
216
- return warning_msg + footer_msg
 
 
 
 
 
 
 
 
 
 
 
 
 
 
217
 
218
 
219
  with gr.Blocks(css=css) as demo:
220
  with gr.Column(elem_id="container"):
221
  # AEGIS Logo at the top center
222
- gr.HTML("""
223
- <div style="text-align: center; margin-bottom: 20px;">
224
- <img src="file/logo/aegis.jpeg" alt="AEGIS Logo" style="max-width: 200px; height: auto; border-radius: 10px; box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);">
225
- </div>
226
- """)
227
 
228
  use_openvino = "" if is_openvino_device() else ""
229
  gr.Markdown(
 
14
  from backend.safety_check import is_safe_image
15
  from pprint import pprint
16
  from transformers import pipeline
17
+ import os
18
 
19
  lcm_text_to_image = LCMTextToImage()
20
  lcm_lora = LCMLora(
 
40
  gr.processing_utils.encode_pil_to_base64 = encode_pil_to_base64_new
41
 
42
 
43
+ def get_logo_html():
44
+ """Get the AEGIS logo HTML with proper path handling"""
45
+ logo_path = "logo/aegis.jpeg"
46
+
47
+ # Check if logo exists
48
+ if os.path.exists(logo_path):
49
+ # For local development, use relative path
50
+ return f"""
51
+ <div style="text-align: center; margin-bottom: 20px;">
52
+ <img src="{logo_path}" alt="AEGIS Logo" style="max-width: 200px; height: auto; border-radius: 10px; box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3); transition: all 0.3s ease;" onmouseover="this.style.transform='scale(1.05)'; this.style.boxShadow='0 6px 20px rgba(30, 60, 114, 0.5)';" onmouseout="this.style.transform='scale(1)'; this.style.boxShadow='0 4px 15px rgba(30, 60, 114, 0.3)';">
53
+ </div>
54
+ """
55
+ else:
56
+ # Fallback with emoji if logo not found
57
+ return """
58
+ <div style="text-align: center; margin-bottom: 20px;">
59
+ <div style="font-size: 80px; margin-bottom: 10px;">🧬</div>
60
+ <p style="color: #1e3c72; font-weight: bold; margin: 0;">AEGIS Bio-Digital Lab 10</p>
61
+ </div>
62
+ """
63
+
64
+
65
  def predict(
66
  prompt,
67
  steps,
 
224
  version = f"<center><p> {APP_VERSION} "
225
  footer_msg = version + (
226
  ' © 2025 | Gaston Software Solutions Tec | '
227
+ 'Tel/WhatsApp: <a href="https://wa.me/256755274944" target="_blank" style="color: #90ee90;">+256755274944</a> | '
228
+ 'Email: <a href="mailto:gastonsoftwaresolution234@gmail.com" style="color: #90ee90;">gastonsoftwaresolution234@gmail.com</a> | '
229
  'AEGIS Bio-Digital Lab 10</p></center>'
230
  )
231
  warning_msg = """
 
236
  <p><em>For research and simulation purposes.</em></p>
237
  </div><br>
238
  """
239
+
240
+ # Green footer section
241
+ green_footer = f"""
242
+ <div style="background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 50%, #4a7c59 100%); padding: 20px; border-radius: 12px; margin: 20px 0; color: white; text-align: center; box-shadow: 0 8px 25px rgba(26, 71, 42, 0.4);">
243
+ <p style="font-size: 16px; font-weight: bold; margin-bottom: 10px; color: #90ee90;">{APP_VERSION}</p>
244
+ <p style="font-size: 14px; margin-bottom: 8px;">© 2025 | <strong>Gaston Software Solutions Tec</strong></p>
245
+ <p style="font-size: 14px; margin-bottom: 8px;">
246
+ <strong>Tel/WhatsApp:</strong> <a href="https://wa.me/256755274944" target="_blank" style="color: #90ee90; text-decoration: none;">+256755274944</a> |
247
+ <strong>Email:</strong> <a href="mailto:gastonsoftwaresolution234@gmail.com" style="color: #90ee90; text-decoration: none;">gastonsoftwaresolution234@gmail.com</a>
248
+ </p>
249
+ <p style="font-size: 14px; color: #b8e6b8;"><strong>AEGIS Bio-Digital Lab 10</strong> - Building Humanity's Predictive Immune System</p>
250
+ </div>
251
+ """
252
+
253
+ return warning_msg + green_footer
254
 
255
 
256
  with gr.Blocks(css=css) as demo:
257
  with gr.Column(elem_id="container"):
258
  # AEGIS Logo at the top center
259
+ gr.HTML(get_logo_html())
 
 
 
 
260
 
261
  use_openvino = "" if is_openvino_device() else ""
262
  gr.Markdown(