Libra-1995 commited on
Commit
8215576
·
1 Parent(s): b09a37e

update endpoint

Browse files
Files changed (1) hide show
  1. web_server.py +15 -2
web_server.py CHANGED
@@ -354,10 +354,10 @@ def execute_action_endpoint(
354
  return Response(content=result, media_type="application/octet-stream")
355
 
356
 
357
- @app.get("/")
358
  def main_page_endpoint(env_handler: EnvHandler = Depends(_get_env_handler)):
359
  """
360
- Main page endpoint to display logs.
361
  """
362
  log_str = "\n".join(env_handler.log_list)
363
  html_content = f"""
@@ -371,4 +371,17 @@ def main_page_endpoint(env_handler: EnvHandler = Depends(_get_env_handler)):
371
  return HTMLResponse(content=html_content)
372
 
373
 
 
 
 
 
 
 
 
 
 
 
 
 
 
374
  uvicorn.run(app, port=7860, workers=1)
 
354
  return Response(content=result, media_type="application/octet-stream")
355
 
356
 
357
+ @app.get("/submition_info")
358
  def main_page_endpoint(env_handler: EnvHandler = Depends(_get_env_handler)):
359
  """
360
+ Endpoint to display the submission logs.
361
  """
362
  log_str = "\n".join(env_handler.log_list)
363
  html_content = f"""
 
371
  return HTMLResponse(content=html_content)
372
 
373
 
374
+ @app.get("/")
375
+ def main_page_endpoint():
376
+ """
377
+ Main page endpoint to display logs.
378
+ """
379
+ html_content = f"""
380
+ <html>
381
+ running
382
+ </html>
383
+ """
384
+ return HTMLResponse(content=html_content)
385
+
386
+
387
  uvicorn.run(app, port=7860, workers=1)