paulcalzada commited on
Commit
75b99f9
·
1 Parent(s): a4baaf3

title customization

Browse files
Files changed (1) hide show
  1. app.py +22 -2
app.py CHANGED
@@ -27,7 +27,17 @@ except Exception as e:
27
 
28
  # --- Gradio UI setup below ---
29
  with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=gr.themes.Soft()) as demo:
30
- gr.Markdown("## DeepV for RTL Code Generation — Model-Agnostic (Bring Your Own API Key)")
 
 
 
 
 
 
 
 
 
 
31
 
32
  with gr.Row():
33
  with gr.Column(scale=2):
@@ -90,7 +100,6 @@ with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=gr.themes.Soft()) a
90
  with gr.Tab("Preview of Retrieved Context (raw)"):
91
  retrieved_raw = gr.HighlightedText(label="(first K documents)", combine_adjacent=True)
92
 
93
- # The Clear All button is moved back here
94
  with gr.Row():
95
  clear_btn = gr.ClearButton(
96
  value="Clear All",
@@ -121,6 +130,9 @@ with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=gr.themes.Soft()) a
121
  outputs=[run_btn, loading_state]
122
  )
123
 
 
 
 
124
  copy_button.click(
125
  fn=copy_to_clipboard_fn,
126
  inputs=[out_code],
@@ -138,6 +150,14 @@ with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=gr.themes.Soft()) a
138
  )
139
 
140
  demo.css = """
 
 
 
 
 
 
 
 
141
  #verilog-output > label > .label-wrap {
142
  position: relative;
143
  }
 
27
 
28
  # --- Gradio UI setup below ---
29
  with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=gr.themes.Soft()) as demo:
30
+ gr.Markdown("## DeepV for RTL Code Generation — Model-Agnostic (Bring Your Own API Key)", elem_id="main-title")
31
+
32
+ # Status Bar for success/error messages
33
+ status_bar = gr.Textbox(
34
+ label="Status",
35
+ lines=1,
36
+ interactive=False,
37
+ show_copy_button=False,
38
+ container=False,
39
+ value="Ready"
40
+ )
41
 
42
  with gr.Row():
43
  with gr.Column(scale=2):
 
100
  with gr.Tab("Preview of Retrieved Context (raw)"):
101
  retrieved_raw = gr.HighlightedText(label="(first K documents)", combine_adjacent=True)
102
 
 
103
  with gr.Row():
104
  clear_btn = gr.ClearButton(
105
  value="Clear All",
 
130
  outputs=[run_btn, loading_state]
131
  )
132
 
133
+ clear_btn.click(fn=lambda: "Ready", outputs=[status_bar])
134
+ spec.submit(fn=lambda: "Ready", outputs=[status_bar])
135
+
136
  copy_button.click(
137
  fn=copy_to_clipboard_fn,
138
  inputs=[out_code],
 
150
  )
151
 
152
  demo.css = """
153
+ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap');
154
+
155
+ #main-title {
156
+ font-family: 'Poppins', sans-serif;
157
+ font-weight: 600;
158
+ letter-spacing: 1px;
159
+ }
160
+
161
  #verilog-output > label > .label-wrap {
162
  position: relative;
163
  }