Update app.py
Browse files
app.py
CHANGED
|
@@ -71,10 +71,14 @@ 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
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
|
| 79 |
out_code = gr.Textbox(
|
| 80 |
label="Generated Verilog",
|
|
@@ -153,16 +157,22 @@ with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=gr.themes.Soft()) a
|
|
| 153 |
letter-spacing: 1px;
|
| 154 |
}
|
| 155 |
|
| 156 |
-
/*
|
| 157 |
-
#logo-
|
| 158 |
display: flex;
|
|
|
|
| 159 |
align-items: center;
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
|
|
|
|
|
|
| 163 |
}
|
| 164 |
|
| 165 |
-
#deepv-logo {
|
|
|
|
|
|
|
|
|
|
| 166 |
padding: 0;
|
| 167 |
margin: 0;
|
| 168 |
border: none;
|
|
@@ -175,7 +185,7 @@ with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=gr.themes.Soft()) a
|
|
| 175 |
|
| 176 |
#copy-button {
|
| 177 |
position: absolute;
|
| 178 |
-
top: 80px;
|
| 179 |
right: 20px;
|
| 180 |
z-index: 1000;
|
| 181 |
background-color: #F0F0F0;
|
|
|
|
| 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 |
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;
|
|
|
|
| 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;
|