Spaces:
Running
Running
Commit ·
75234fe
1
Parent(s): c01667e
testing
Browse files- server/__pycache__/app.cpython-310.pyc +0 -0
- server/__pycache__/app.cpython-39.pyc +0 -0
- server/__pycache__/environment.cpython-310.pyc +0 -0
- server/app.py +7 -1
- server/graders/__pycache__/grader_easy.cpython-310.pyc +0 -0
- server/tasks/__pycache__/task_hard.cpython-310.pyc +0 -0
- server/tasks/__pycache__/task_medium.cpython-310.pyc +0 -0
server/__pycache__/app.cpython-310.pyc
CHANGED
|
Binary files a/server/__pycache__/app.cpython-310.pyc and b/server/__pycache__/app.cpython-310.pyc differ
|
|
|
server/__pycache__/app.cpython-39.pyc
ADDED
|
Binary file (4.22 kB). View file
|
|
|
server/__pycache__/environment.cpython-310.pyc
CHANGED
|
Binary files a/server/__pycache__/environment.cpython-310.pyc and b/server/__pycache__/environment.cpython-310.pyc differ
|
|
|
server/app.py
CHANGED
|
@@ -7,7 +7,8 @@ from pydantic import BaseModel
|
|
| 7 |
import os
|
| 8 |
|
| 9 |
from server.environment import CodeDebugEnvironment
|
| 10 |
-
from models import DebugAction
|
|
|
|
| 11 |
|
| 12 |
app = FastAPI(
|
| 13 |
title="Code Debug Environment",
|
|
@@ -28,6 +29,11 @@ app.add_middleware(
|
|
| 28 |
env = CodeDebugEnvironment()
|
| 29 |
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
@app.get("/", response_class=HTMLResponse)
|
| 32 |
async def root():
|
| 33 |
"""Homepage with live tester UI."""
|
|
|
|
| 7 |
import os
|
| 8 |
|
| 9 |
from server.environment import CodeDebugEnvironment
|
| 10 |
+
from models import DebugAction
|
| 11 |
+
from fastapi.responses import HTMLResponse, Response
|
| 12 |
|
| 13 |
app = FastAPI(
|
| 14 |
title="Code Debug Environment",
|
|
|
|
| 29 |
env = CodeDebugEnvironment()
|
| 30 |
|
| 31 |
|
| 32 |
+
@app.get("/favicon.ico", include_in_schema=False)
|
| 33 |
+
async def favicon():
|
| 34 |
+
# Simple 1x1 transparent icon
|
| 35 |
+
return Response(content=b"", media_type="image/x-icon")
|
| 36 |
+
|
| 37 |
@app.get("/", response_class=HTMLResponse)
|
| 38 |
async def root():
|
| 39 |
"""Homepage with live tester UI."""
|
server/graders/__pycache__/grader_easy.cpython-310.pyc
CHANGED
|
Binary files a/server/graders/__pycache__/grader_easy.cpython-310.pyc and b/server/graders/__pycache__/grader_easy.cpython-310.pyc differ
|
|
|
server/tasks/__pycache__/task_hard.cpython-310.pyc
CHANGED
|
Binary files a/server/tasks/__pycache__/task_hard.cpython-310.pyc and b/server/tasks/__pycache__/task_hard.cpython-310.pyc differ
|
|
|
server/tasks/__pycache__/task_medium.cpython-310.pyc
CHANGED
|
Binary files a/server/tasks/__pycache__/task_medium.cpython-310.pyc and b/server/tasks/__pycache__/task_medium.cpython-310.pyc differ
|
|
|