Spaces:
Sleeping
Sleeping
Ali Hmaou commited on
Commit ·
a901439
1
Parent(s): 4527384
Fix UI layout for configuration inputs
Browse files- src/mcp_server/server.py +19 -21
src/mcp_server/server.py
CHANGED
|
@@ -308,27 +308,25 @@ with gr.Blocks(title="MCePtion") as demo:
|
|
| 308 |
except:
|
| 309 |
pass
|
| 310 |
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
info="Deployment token. If empty, uses the server's HF_TOKEN environment variable."
|
| 331 |
-
)
|
| 332 |
|
| 333 |
# Button to apply config (simple update of global variables/env for the session)
|
| 334 |
btn_save_config = gr.Button("Save Configuration")
|
|
|
|
| 308 |
except:
|
| 309 |
pass
|
| 310 |
|
| 311 |
+
hf_user_profile = gr.Textbox(
|
| 312 |
+
label="HF User Profile / Namespace",
|
| 313 |
+
value=_default_user or "",
|
| 314 |
+
placeholder="e.g. alihmaou",
|
| 315 |
+
info="Your default Hugging Face username or organization."
|
| 316 |
+
)
|
| 317 |
+
default_mcp_space_name = gr.Textbox(
|
| 318 |
+
label="Default Toolbox Name",
|
| 319 |
+
value=os.environ.get("DEFAULT_SPACE", "mymcpserver"),
|
| 320 |
+
placeholder="e.g. mymcpserver",
|
| 321 |
+
info="Default Space (Toolbox) name for additions (will be concatenated with user)."
|
| 322 |
+
)
|
| 323 |
+
|
| 324 |
+
hf_token_input = gr.Textbox(
|
| 325 |
+
label="HF Write Token (Optional override)",
|
| 326 |
+
type="password",
|
| 327 |
+
placeholder="hf_...",
|
| 328 |
+
info="Deployment token. If empty, uses the server's HF_TOKEN environment variable."
|
| 329 |
+
)
|
|
|
|
|
|
|
| 330 |
|
| 331 |
# Button to apply config (simple update of global variables/env for the session)
|
| 332 |
btn_save_config = gr.Button("Save Configuration")
|