Ali Hmaou commited on
Commit
a901439
·
1 Parent(s): 4527384

Fix UI layout for configuration inputs

Browse files
Files changed (1) hide show
  1. 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
- with gr.Row():
312
- hf_user_profile = gr.Textbox(
313
- label="HF User Profile / Namespace",
314
- value=_default_user or "",
315
- placeholder="e.g. alihmaou",
316
- info="Your default Hugging Face username or organization."
317
- )
318
- default_mcp_space_name = gr.Textbox(
319
- label="Default Toolbox Name",
320
- value=os.environ.get("DEFAULT_SPACE", "mymcpserver"),
321
- placeholder="e.g. mymcpserver",
322
- info="Default Space (Toolbox) name for additions (will be concatenated with user)."
323
- )
324
-
325
- with gr.Row():
326
- hf_token_input = gr.Textbox(
327
- label="HF Write Token (Optional override)",
328
- type="password",
329
- placeholder="hf_...",
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")