Update app.py
Browse files
app.py
CHANGED
|
@@ -71,9 +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 and "Output" text ---
|
| 75 |
with gr.Row(elem_id="logo-and-output-row"):
|
| 76 |
-
gr.
|
| 77 |
gr.Markdown("**Output**", elem_id="output-title")
|
| 78 |
|
| 79 |
with gr.Group():
|
|
@@ -89,7 +89,7 @@ with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=gr.themes.Soft()) a
|
|
| 89 |
with gr.Row():
|
| 90 |
clear_btn = gr.ClearButton(
|
| 91 |
value="Clear All",
|
| 92 |
-
components=[spec, out_code, temperature_tb, top_p_tb, max_new_tokens_tb]
|
| 93 |
)
|
| 94 |
|
| 95 |
# --- Wrapper function to handle output from the generation agent ---
|
|
@@ -156,12 +156,14 @@ with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=gr.themes.Soft()) a
|
|
| 156 |
/* Styling for the logo and "Output" title */
|
| 157 |
#logo-and-output-row {
|
| 158 |
display: flex;
|
| 159 |
-
align-items: center; /* Vertically align items
|
| 160 |
-
justify-content: center; /*
|
| 161 |
margin-bottom: 10px; /* Space between logo/title and output textbox */
|
| 162 |
}
|
| 163 |
|
| 164 |
#deepv-logo {
|
|
|
|
|
|
|
| 165 |
margin-right: 10px; /* Space between logo and text */
|
| 166 |
animation: fadeInScale 1.5s ease-out forwards; /* Apply animation */
|
| 167 |
}
|
|
|
|
| 71 |
)
|
| 72 |
|
| 73 |
with gr.Column(scale=3):
|
| 74 |
+
# --- DeepV Logo and "Output" text (using gr.HTML for the logo) ---
|
| 75 |
with gr.Row(elem_id="logo-and-output-row"):
|
| 76 |
+
gr.HTML('<img src="file=DeepV_logo.png" id="deepv-logo" alt="DeepV Logo">') # Direct HTML img tag
|
| 77 |
gr.Markdown("**Output**", elem_id="output-title")
|
| 78 |
|
| 79 |
with gr.Group():
|
|
|
|
| 89 |
with gr.Row():
|
| 90 |
clear_btn = gr.ClearButton(
|
| 91 |
value="Clear All",
|
| 92 |
+
components=[spec, out_code, temperature_tb, top_p_tb, max_new_tokens_tb]
|
| 93 |
)
|
| 94 |
|
| 95 |
# --- Wrapper function to handle output from the generation agent ---
|
|
|
|
| 156 |
/* Styling for the logo and "Output" title */
|
| 157 |
#logo-and-output-row {
|
| 158 |
display: flex;
|
| 159 |
+
align-items: center; /* Vertically align items */
|
| 160 |
+
justify-content: center; /* Horizontally center contents */
|
| 161 |
margin-bottom: 10px; /* Space between logo/title and output textbox */
|
| 162 |
}
|
| 163 |
|
| 164 |
#deepv-logo {
|
| 165 |
+
width: 50px; /* Set desired width */
|
| 166 |
+
height: 50px; /* Set desired height */
|
| 167 |
margin-right: 10px; /* Space between logo and text */
|
| 168 |
animation: fadeInScale 1.5s ease-out forwards; /* Apply animation */
|
| 169 |
}
|