paulcalzada commited on
Commit
6805b2e
·
1 Parent(s): bcb556b
Files changed (1) hide show
  1. app.py +11 -17
app.py CHANGED
@@ -2,22 +2,6 @@ import os
2
  import gradio as gr
3
  from huggingface_hub import hf_hub_download
4
  import importlib.util
5
- from gradio import themes
6
-
7
- # --- Custom Theme ---
8
- # Create a custom theme object
9
- # Corrected Color class usage
10
- light_dark_theme = themes.Base(
11
- primary_hue=themes.colors.Color("indigo"),
12
- secondary_hue=themes.colors.Color("cyan"),
13
- neutral_hue=themes.colors.Color("gray")
14
- ).set(
15
- background_fill_secondary_dark="#222",
16
- background_fill_secondary_light="#eee",
17
- button_primary_background_fill_dark="#4CAF50",
18
- button_primary_background_fill_hover_dark="#3e8e41",
19
- button_primary_text_color_dark="#fff"
20
- )
21
 
22
  # --- Private Repository Information ---
23
  PRIVATE_DATASET_ID = os.getenv("PRIVATE_DATASET_ID")
@@ -42,7 +26,17 @@ except Exception as e:
42
  return f"// ERROR: Failed to load core agent code. Details: {e}", "", ""
43
 
44
  # --- Gradio UI setup below ---
45
- with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=light_dark_theme) as demo:
 
 
 
 
 
 
 
 
 
 
46
  gr.Markdown("## DeepV for RTL Code Generation — Model-Agnostic (Bring Your Own API Key)")
47
 
48
  status_bar = gr.Textbox(
 
2
  import gradio as gr
3
  from huggingface_hub import hf_hub_download
4
  import importlib.util
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
  # --- Private Repository Information ---
7
  PRIVATE_DATASET_ID = os.getenv("PRIVATE_DATASET_ID")
 
26
  return f"// ERROR: Failed to load core agent code. Details: {e}", "", ""
27
 
28
  # --- Gradio UI setup below ---
29
+ with gr.Blocks(
30
+ title="DeepV for RTL (Model-Agnostic)",
31
+ # Directly set the color values for the theme
32
+ theme=gr.themes.Soft().set(
33
+ background_fill_secondary_dark="#222",
34
+ background_fill_secondary_light="#eee",
35
+ button_primary_background_fill_dark="#4CAF50",
36
+ button_primary_background_fill_hover_dark="#3e8e41",
37
+ button_primary_text_color_dark="#fff"
38
+ )
39
+ ) as demo:
40
  gr.Markdown("## DeepV for RTL Code Generation — Model-Agnostic (Bring Your Own API Key)")
41
 
42
  status_bar = gr.Textbox(