pup-py commited on
Commit
8083ca2
1 Parent(s): 86614b9
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -1,4 +1,5 @@
1
  from fastapi import FastAPI, WebSocket
 
2
  import subprocess
3
 
4
  app = FastAPI()
@@ -60,4 +61,4 @@ async def execute_command(command: str) -> str:
60
 
61
  @app.get("/")
62
  async def index():
63
- return index_html
 
1
  from fastapi import FastAPI, WebSocket
2
+ from fastapi.responses import HTMLResponse
3
  import subprocess
4
 
5
  app = FastAPI()
 
61
 
62
  @app.get("/")
63
  async def index():
64
+ return HTMLResponse(content=index_html, status_code=200)