Update app.py
Browse files
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 |
-
#
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 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 |
-
/*
|
| 158 |
-
#
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 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 */
|