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

updating logo bugs

Browse files
Files changed (1) hide show
  1. app.py +23 -26
app.py CHANGED
@@ -71,14 +71,9 @@ 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.HTML for full control ---
75
- # This HTML block contains the logo as a simple <img> tag.
76
- # We'll style it using CSS to remove the Gradio default wrapping.
77
- gr.HTML("""
78
- <div id="custom-logo-container">
79
- <img src="file=DeepV_logo.png" alt="DeepV Logo" id="deepv-logo-html">
80
- </div>
81
- """)
82
 
83
  out_code = gr.Textbox(
84
  label="Generated Verilog",
@@ -157,35 +152,37 @@ with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=gr.themes.Soft()) a
157
  letter-spacing: 1px;
158
  }
159
 
160
- /* Custom Logo Container Styling */
161
- #custom-logo-container {
 
 
 
 
 
 
 
 
162
  display: flex;
163
- justify-content: center; /* Center the logo horizontally */
164
  align-items: center;
165
- margin-bottom: 10px; /* Space between logo and output box */
166
- height: 90px; /* Give enough height for the larger logo */
167
- background-color: transparent; /* Ensure no white box around it */
168
- border: none; /* Remove any border */
169
- box-shadow: none; /* Remove any shadow */
170
  }
171
 
172
- #deepv-logo-html {
173
- width: 300px; /* Make the logo bigger */
174
- height: 85px; /* Adjust height accordingly */
175
- object-fit: contain; /* Ensure logo scales properly */
176
- padding: 0;
177
- margin: 0;
178
- border: none;
179
- box-shadow: none;
180
  }
181
-
182
  #verilog-output {
183
  position: relative;
184
  }
185
 
186
  #copy-button {
187
  position: absolute;
188
- top: 80px; /* Adjust top to be closer to output window */
189
  right: 20px;
190
  z-index: 1000;
191
  background-color: #F0F0F0;
 
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
 
78
  out_code = gr.Textbox(
79
  label="Generated Verilog",
 
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 {
180
  position: relative;
181
  }
182
 
183
  #copy-button {
184
  position: absolute;
185
+ top: 80px;
186
  right: 20px;
187
  z-index: 1000;
188
  background-color: #F0F0F0;