paulcalzada commited on
Commit
163a5ed
·
verified ·
1 Parent(s): 4b68c42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -20
app.py CHANGED
@@ -71,20 +71,18 @@ with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=gr.themes.Soft()) a
71
  )
72
 
73
  with gr.Column(scale=3):
74
- # --- DeepV Logo instead of "Output" text ---
75
- with gr.Row(elem_id="logo-row"):
76
- # Display the logo directly using gr.Image
77
- gr.Image("DeepV_logo.png", width=250, height=70, show_label=False, elem_id="deepv-logo")
78
-
79
- with gr.Group():
80
- out_code = gr.Textbox(
81
- label="Generated Verilog",
82
- lines=28,
83
- interactive=False,
84
- placeholder="// Your Verilog code will appear here",
85
- elem_id="verilog-output"
86
- )
87
- copy_button = gr.Button("📋", variant="secondary", elem_id="copy-button")
88
 
89
  with gr.Row():
90
  clear_btn = gr.ClearButton(
@@ -154,13 +152,12 @@ with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=gr.themes.Soft()) a
154
  letter-spacing: 1px;
155
  }
156
 
157
- /* Simplified logo row styling */
158
- #logo-row {
159
- display: flex;
160
- align-items: center;
161
- justify-content: center;
162
  margin-bottom: 10px;
163
- height: 80px;
164
  }
165
 
166
  /* General UI element styling */
 
71
  )
72
 
73
  with gr.Column(scale=3):
74
+ # The logo is now a standalone image component, centered and sized appropriately.
75
+ gr.Image("DeepV_logo.png", width=300, height=85, show_label=False, elem_id="deepv-logo")
76
+
77
+ # The output textbox and copy button are now standalone components
78
+ out_code = gr.Textbox(
79
+ label="Generated Verilog",
80
+ lines=28,
81
+ interactive=False,
82
+ placeholder="// Your Verilog code will appear here",
83
+ elem_id="verilog-output"
84
+ )
85
+ copy_button = gr.Button("📋", variant="secondary", elem_id="copy-button")
 
 
86
 
87
  with gr.Row():
88
  clear_btn = gr.ClearButton(
 
152
  letter-spacing: 1px;
153
  }
154
 
155
+ /* Center the logo in its column */
156
+ #deepv-logo {
157
+ margin-left: auto;
158
+ margin-right: auto;
159
+ display: block;
160
  margin-bottom: 10px;
 
161
  }
162
 
163
  /* General UI element styling */