theguywhosucks commited on
Commit
594ffc2
Β·
verified Β·
1 Parent(s): b8b372f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -261,7 +261,7 @@ with gr.Blocks(css=PROFESSIONAL_CSS, title="Sandbox Compute Platform") as demo:
261
  # Connection Card
262
  with gr.Group(elem_classes="card"):
263
  gr.HTML('<div class="card-header">1. Connection</div>')
264
- with gr.Box(elem_classes="card-content"):
265
  with gr.Row():
266
  connect_btn = gr.Button("πŸ”— Connect to Backend", elem_classes=["btn", "btn-primary"])
267
  load_samples_btn = gr.Button("πŸ“„ Load Templates", elem_classes=["btn", "btn-secondary"])
@@ -270,7 +270,7 @@ with gr.Blocks(css=PROFESSIONAL_CSS, title="Sandbox Compute Platform") as demo:
270
  # Environment Card
271
  with gr.Group(elem_classes="card"):
272
  gr.HTML('<div class="card-header">2. Environment Setup</div>')
273
- with gr.Box(elem_classes="card-content"):
274
  with gr.Tabs():
275
  with gr.TabItem("main.py"):
276
  main_py_editor = gr.Code(value=SAMPLE_MAIN_PY, language="python", label="Application Source Code", lines=15, elem_classes="code-editor")
@@ -280,7 +280,7 @@ with gr.Blocks(css=PROFESSIONAL_CSS, title="Sandbox Compute Platform") as demo:
280
  # Deployment Card
281
  with gr.Group(elem_classes="card"):
282
  gr.HTML('<div class="card-header">3. Deployment</div>')
283
- with gr.Box(elem_classes="card-content"):
284
  with gr.Row():
285
  launch_btn = gr.Button("πŸš€ Deploy Sandbox", elem_classes=["btn", "btn-primary"], scale=2)
286
  kill_btn = gr.Button("πŸ›‘ Terminate", elem_classes=["btn", "btn-danger"])
@@ -291,7 +291,7 @@ with gr.Blocks(css=PROFESSIONAL_CSS, title="Sandbox Compute Platform") as demo:
291
  # Status Card
292
  with gr.Group(elem_classes="card"):
293
  gr.HTML('<div class="card-header">System Monitor</div>')
294
- with gr.Box(elem_classes="card-content"):
295
  gr.HTML('<p class="form-label">Instance Status</p>')
296
  status_display = gr.Textbox(value="OFFLINE", interactive=False, show_label=False, elem_classes=["status-badge", "status-offline"])
297
 
@@ -304,7 +304,7 @@ with gr.Blocks(css=PROFESSIONAL_CSS, title="Sandbox Compute Platform") as demo:
304
  # Logs Card
305
  with gr.Group(elem_classes="card"):
306
  gr.HTML('<div class="card-header">Application Logs</div>')
307
- with gr.Box(elem_classes="card-content"):
308
  fetch_logs_btn = gr.Button("πŸ”„ Refresh Logs", elem_classes=["btn", "btn-secondary"])
309
  logs_display = gr.Textbox(lines=18, interactive=False, placeholder="[SYSTEM] Application logs will appear here...", show_label=False, elem_classes="terminal")
310
 
@@ -376,3 +376,4 @@ with gr.Blocks(css=PROFESSIONAL_CSS, title="Sandbox Compute Platform") as demo:
376
  # --- Launch Application ---
377
  if __name__ == "__main__":
378
  demo.launch(server_name="0.0.0.0", server_port=7860, debug=False)
 
 
261
  # Connection Card
262
  with gr.Group(elem_classes="card"):
263
  gr.HTML('<div class="card-header">1. Connection</div>')
264
+ with gr.Group(elem_classes="card-content"):
265
  with gr.Row():
266
  connect_btn = gr.Button("πŸ”— Connect to Backend", elem_classes=["btn", "btn-primary"])
267
  load_samples_btn = gr.Button("πŸ“„ Load Templates", elem_classes=["btn", "btn-secondary"])
 
270
  # Environment Card
271
  with gr.Group(elem_classes="card"):
272
  gr.HTML('<div class="card-header">2. Environment Setup</div>')
273
+ with gr.Group(elem_classes="card-content"):
274
  with gr.Tabs():
275
  with gr.TabItem("main.py"):
276
  main_py_editor = gr.Code(value=SAMPLE_MAIN_PY, language="python", label="Application Source Code", lines=15, elem_classes="code-editor")
 
280
  # Deployment Card
281
  with gr.Group(elem_classes="card"):
282
  gr.HTML('<div class="card-header">3. Deployment</div>')
283
+ with gr.Group(elem_classes="card-content"):
284
  with gr.Row():
285
  launch_btn = gr.Button("πŸš€ Deploy Sandbox", elem_classes=["btn", "btn-primary"], scale=2)
286
  kill_btn = gr.Button("πŸ›‘ Terminate", elem_classes=["btn", "btn-danger"])
 
291
  # Status Card
292
  with gr.Group(elem_classes="card"):
293
  gr.HTML('<div class="card-header">System Monitor</div>')
294
+ with gr.Group(elem_classes="card-content"):
295
  gr.HTML('<p class="form-label">Instance Status</p>')
296
  status_display = gr.Textbox(value="OFFLINE", interactive=False, show_label=False, elem_classes=["status-badge", "status-offline"])
297
 
 
304
  # Logs Card
305
  with gr.Group(elem_classes="card"):
306
  gr.HTML('<div class="card-header">Application Logs</div>')
307
+ with gr.Group(elem_classes="card-content"):
308
  fetch_logs_btn = gr.Button("πŸ”„ Refresh Logs", elem_classes=["btn", "btn-secondary"])
309
  logs_display = gr.Textbox(lines=18, interactive=False, placeholder="[SYSTEM] Application logs will appear here...", show_label=False, elem_classes="terminal")
310
 
 
376
  # --- Launch Application ---
377
  if __name__ == "__main__":
378
  demo.launch(server_name="0.0.0.0", server_port=7860, debug=False)
379
+