Commit ·
a37e8ba
1
Parent(s): e9bd7f5
removing title move logo
Browse files
app.py
CHANGED
|
@@ -39,7 +39,15 @@ logo_base64 = get_logo_base64()
|
|
| 39 |
|
| 40 |
# --- Gradio UI setup below ---
|
| 41 |
with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=gr.themes.Soft()) as demo:
|
| 42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
with gr.Row():
|
| 45 |
with gr.Column(scale=2):
|
|
@@ -83,16 +91,6 @@ with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=gr.themes.Soft()) a
|
|
| 83 |
)
|
| 84 |
|
| 85 |
with gr.Column(scale=3):
|
| 86 |
-
# The logo is now embedded directly in the HTML as a Base64 string
|
| 87 |
-
if logo_base64:
|
| 88 |
-
gr.HTML(f"""
|
| 89 |
-
<div id="deepv-logo-container">
|
| 90 |
-
<img id="deepv-logo" src="data:image/png;base64,{logo_base64}" alt="DeepV Logo">
|
| 91 |
-
</div>
|
| 92 |
-
""")
|
| 93 |
-
else:
|
| 94 |
-
gr.Markdown("Logo not found.")
|
| 95 |
-
|
| 96 |
out_code = gr.Textbox(
|
| 97 |
label="Generated Verilog",
|
| 98 |
lines=28,
|
|
@@ -169,14 +167,6 @@ with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=gr.themes.Soft()) a
|
|
| 169 |
margin-top: 0 !important;
|
| 170 |
}
|
| 171 |
|
| 172 |
-
#main-title {
|
| 173 |
-
font-family: 'Poppins', sans-serif;
|
| 174 |
-
font-weight: 600;
|
| 175 |
-
letter-spacing: 1px;
|
| 176 |
-
margin-top: 0 !important;
|
| 177 |
-
margin-bottom: 0 !important;
|
| 178 |
-
}
|
| 179 |
-
|
| 180 |
#deepv-logo-container {
|
| 181 |
display: flex;
|
| 182 |
justify-content: center;
|
|
@@ -199,7 +189,7 @@ with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=gr.themes.Soft()) a
|
|
| 199 |
#copy-button {
|
| 200 |
position: absolute;
|
| 201 |
top: 50px;
|
| 202 |
-
right: 20px;
|
| 203 |
z-index: 1000;
|
| 204 |
background-color: #F0F0F0;
|
| 205 |
color: #333;
|
|
|
|
| 39 |
|
| 40 |
# --- Gradio UI setup below ---
|
| 41 |
with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=gr.themes.Soft()) as demo:
|
| 42 |
+
# The logo is now at the top middle, outside of any column structure
|
| 43 |
+
if logo_base64:
|
| 44 |
+
gr.HTML(f"""
|
| 45 |
+
<div id="deepv-logo-container">
|
| 46 |
+
<img id="deepv-logo" src="data:image/png;base64,{logo_base64}" alt="DeepV Logo">
|
| 47 |
+
</div>
|
| 48 |
+
""")
|
| 49 |
+
else:
|
| 50 |
+
gr.Markdown("Logo not found.")
|
| 51 |
|
| 52 |
with gr.Row():
|
| 53 |
with gr.Column(scale=2):
|
|
|
|
| 91 |
)
|
| 92 |
|
| 93 |
with gr.Column(scale=3):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
out_code = gr.Textbox(
|
| 95 |
label="Generated Verilog",
|
| 96 |
lines=28,
|
|
|
|
| 167 |
margin-top: 0 !important;
|
| 168 |
}
|
| 169 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 170 |
#deepv-logo-container {
|
| 171 |
display: flex;
|
| 172 |
justify-content: center;
|
|
|
|
| 189 |
#copy-button {
|
| 190 |
position: absolute;
|
| 191 |
top: 50px;
|
| 192 |
+
right: 20px;
|
| 193 |
z-index: 1000;
|
| 194 |
background-color: #F0F0F0;
|
| 195 |
color: #333;
|