NOT-OMEGA commited on
Commit
facc0f2
Β·
verified Β·
1 Parent(s): 2222383

Update app_gradio.py

Browse files
Files changed (1) hide show
  1. app_gradio.py +22 -24
app_gradio.py CHANGED
@@ -417,29 +417,27 @@ def classify_batch(file):
417
 
418
 
419
  # ── UI ───────────────────────────────────────────────────────────────────────
420
- with gr.Blocks(
421
- title="LOG CLASSIFICATION SYSTEM",
422
- theme=gr.themes.Base(
423
- primary_hue="blue",
424
- secondary_hue="cyan",
425
- neutral_hue="slate",
426
- font=[gr.themes.GoogleFont("Exo 2"), "sans-serif"],
427
- font_mono=[gr.themes.GoogleFont("Share Tech Mono"), "monospace"],
428
- ).set(
429
- body_background_fill="#050810",
430
- body_text_color="#e2e8f0",
431
- block_background_fill="#0d1425",
432
- block_border_color="rgba(0,212,255,0.15)",
433
- block_label_text_color="#00d4ff",
434
- input_background_fill="#050810",
435
- input_border_color="rgba(0,212,255,0.2)",
436
- button_primary_background_fill="linear-gradient(135deg, #0066ff, #00d4ff)",
437
- button_primary_text_color="#ffffff",
438
- border_color_accent="#00d4ff",
439
- color_accent_soft="rgba(0,212,255,0.1)",
440
- ),
441
- css=CUSTOM_CSS
442
- ) as demo:
443
 
444
  gr.Markdown("""
445
  # πŸ” LOG CLASSIFICATION SYSTEM
@@ -539,4 +537,4 @@ BillingSystem,GET /api/v2/invoice HTTP/1.1 status: 500
539
  """)
540
 
541
  if __name__ == "__main__":
542
- demo.launch(server_name="0.0.0.0", server_port=7860)
 
417
 
418
 
419
  # ── UI ───────────────────────────────────────────────────────────────────────
420
+ THEME = gr.themes.Base(
421
+ primary_hue="blue",
422
+ secondary_hue="cyan",
423
+ neutral_hue="slate",
424
+ font=[gr.themes.GoogleFont("Exo 2"), "sans-serif"],
425
+ font_mono=[gr.themes.GoogleFont("Share Tech Mono"), "monospace"],
426
+ ).set(
427
+ body_background_fill="#050810",
428
+ body_text_color="#e2e8f0",
429
+ block_background_fill="#0d1425",
430
+ block_border_color="rgba(0,212,255,0.15)",
431
+ block_label_text_color="#00d4ff",
432
+ input_background_fill="#050810",
433
+ input_border_color="rgba(0,212,255,0.2)",
434
+ button_primary_background_fill="linear-gradient(135deg, #0066ff, #00d4ff)",
435
+ button_primary_text_color="#ffffff",
436
+ border_color_accent="#00d4ff",
437
+ color_accent_soft="rgba(0,212,255,0.1)",
438
+ )
439
+
440
+ with gr.Blocks(title="LOG CLASSIFICATION SYSTEM") as demo:
 
 
441
 
442
  gr.Markdown("""
443
  # πŸ” LOG CLASSIFICATION SYSTEM
 
537
  """)
538
 
539
  if __name__ == "__main__":
540
+ demo.launch(server_name="0.0.0.0", server_port=7860, theme=THEME, css=CUSTOM_CSS)