databoysu commited on
Commit
c8cdf7a
·
1 Parent(s): 7862856
Files changed (2) hide show
  1. backend/app.py +4 -0
  2. vision_ui.py +1 -1
backend/app.py CHANGED
@@ -36,6 +36,10 @@ from fastapi.responses import RedirectResponse
36
  async def root_redirect():
37
  return RedirectResponse(url="/web/")
38
 
 
 
 
 
39
  app = gr.mount_gradio_app(app, demo, path="/web")
40
 
41
 
 
36
  async def root_redirect():
37
  return RedirectResponse(url="/web/")
38
 
39
+ @app.get("/web", include_in_schema=False)
40
+ async def web_no_slash_redirect():
41
+ return RedirectResponse(url="/web/")
42
+
43
  app = gr.mount_gradio_app(app, demo, path="/web")
44
 
45
 
vision_ui.py CHANGED
@@ -457,7 +457,7 @@ def run_agent(
457
  yield code_view, _terminal_html(terminal_lines), status_html, score_value, rewards_md
458
 
459
 
460
- with gr.Blocks(title="TraceFix-RL Mission Control") as demo:
461
  gr.HTML(
462
  """
463
  <div id='header-wrap'>
 
457
  yield code_view, _terminal_html(terminal_lines), status_html, score_value, rewards_md
458
 
459
 
460
+ with gr.Blocks(title="TraceFix-RL Mission Control", css=CSS) as demo:
461
  gr.HTML(
462
  """
463
  <div id='header-wrap'>