paulcalzada commited on
Commit
bafe27e
·
verified ·
1 Parent(s): bb1e5fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -13
app.py CHANGED
@@ -71,7 +71,7 @@ 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 using gr.Image and CSS for styling ---
75
  with gr.Row(elem_id="logo-row"):
76
  gr.Image("DeepV_logo.png", width=300, height=85, show_label=False, elem_id="deepv-logo")
77
 
@@ -152,28 +152,37 @@ with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=gr.themes.Soft()) a
152
  letter-spacing: 1px;
153
  }
154
 
155
- /* Target and hide the Gradio UI elements around the image */
156
- #deepv-logo > .gr-image-container,
157
- #deepv-logo > .gr-image-label {
158
- display: none !important;
 
 
 
 
159
  }
160
 
161
- #deepv-logo {
162
- border: none !important;
163
- box-shadow: none !important;
164
- height: 90px !important; /* Adjust height to match the larger image */
165
- display: flex;
166
- justify-content: center;
167
- align-items: center;
168
  }
169
 
 
 
 
 
 
 
 
170
  /* Simplified logo row styling */
171
  #logo-row {
172
  display: flex;
173
  align-items: center;
174
  justify-content: center;
175
  margin-bottom: 10px;
176
- height: 80px;
177
  }
178
 
179
  #verilog-output {
 
71
  )
72
 
73
  with gr.Column(scale=3):
74
+ # --- DeepV Logo using gr.Image and robust CSS for styling ---
75
  with gr.Row(elem_id="logo-row"):
76
  gr.Image("DeepV_logo.png", width=300, height=85, show_label=False, elem_id="deepv-logo")
77
 
 
152
  letter-spacing: 1px;
153
  }
154
 
155
+ /* Target the Gradio Image component and its internal elements */
156
+ #deepv-logo {
157
+ background-color: transparent !important; /* Remove white background */
158
+ border: none !important; /* Remove border */
159
+ box-shadow: none !important; /* Remove shadow */
160
+ padding: 0 !important; /* Remove any padding */
161
+ margin: 0 !important; /* Remove any margin */
162
+ overflow: hidden !important; /* Hide anything that overflows */
163
  }
164
 
165
+ /* Hide the expand, download, and share buttons */
166
+ #deepv-logo .gallery-item.min,
167
+ #deepv-logo .btn.tool,
168
+ #deepv-logo .wrap-inner.border-none {
169
+ display: none !important;
 
 
170
  }
171
 
172
+ /* Ensure the image itself fills the component without extra space */
173
+ #deepv-logo img {
174
+ width: 100% !important;
175
+ height: 100% !important;
176
+ object-fit: contain !important;
177
+ }
178
+
179
  /* Simplified logo row styling */
180
  #logo-row {
181
  display: flex;
182
  align-items: center;
183
  justify-content: center;
184
  margin-bottom: 10px;
185
+ height: 85px; /* Adjust height to fit the larger logo better */
186
  }
187
 
188
  #verilog-output {