Reorganize layout: inputs and buttons on left, keys list on right
Browse files
app.py
CHANGED
|
@@ -293,28 +293,27 @@ with gr.Blocks(title="HuggingFace Model Weight Inspector") as demo:
|
|
| 293 |
gr.Markdown("# π HuggingFace Model Weight Inspector")
|
| 294 |
|
| 295 |
with gr.Row():
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
fetch_btn = gr.Button("π Fetch", variant="primary", scale=1)
|
| 318 |
|
| 319 |
with gr.Tabs():
|
| 320 |
with gr.Tab("Results"):
|
|
|
|
| 293 |
gr.Markdown("# π HuggingFace Model Weight Inspector")
|
| 294 |
|
| 295 |
with gr.Row():
|
| 296 |
+
with gr.Column(scale=1):
|
| 297 |
+
model_id_input = gr.Textbox(
|
| 298 |
+
label="Model ID",
|
| 299 |
+
placeholder="e.g., meta-llama/Llama-2-7b-hf",
|
| 300 |
+
value="Qwen/Qwen3-Coder-Next-FP8",
|
| 301 |
+
)
|
| 302 |
+
param_key_input = gr.Textbox(
|
| 303 |
+
label="Parameter Key",
|
| 304 |
+
placeholder="e.g., model.norm.weight",
|
| 305 |
+
value="model.norm.weight",
|
| 306 |
+
)
|
| 307 |
+
with gr.Row():
|
| 308 |
+
list_keys_btn = gr.Button("π List Keys", variant="secondary", scale=1)
|
| 309 |
+
fetch_btn = gr.Button("π Fetch", variant="primary", scale=1)
|
| 310 |
+
|
| 311 |
+
with gr.Column(scale=1):
|
| 312 |
+
keys_output = gr.Textbox(
|
| 313 |
+
label="Available Parameter Keys",
|
| 314 |
+
lines=10,
|
| 315 |
+
max_lines=20,
|
| 316 |
+
)
|
|
|
|
| 317 |
|
| 318 |
with gr.Tabs():
|
| 319 |
with gr.Tab("Results"):
|