77ethers commited on
Commit
9df01d2
·
verified ·
1 Parent(s): e7ae456

Deploy MIME fix for case study assets

Browse files
Files changed (1) hide show
  1. gridops/server/app.py +4 -0
gridops/server/app.py CHANGED
@@ -8,6 +8,7 @@ Adds custom STATEFUL /reset and /step endpoints for the dashboard (HTTP).
8
  from __future__ import annotations
9
 
10
  import os
 
11
  from pathlib import Path
12
  from typing import Any
13
 
@@ -22,6 +23,9 @@ from gridops.models import GridOpsAction, GridOpsObservation
22
  from gridops.server.environment import GridOpsEnvironment
23
  from gridops.tasks.definitions import TASKS
24
 
 
 
 
25
  # Create the OpenEnv app (provides /ws, /health, /schema, /web, /docs)
26
  app = create_app(
27
  GridOpsEnvironment,
 
8
  from __future__ import annotations
9
 
10
  import os
11
+ import mimetypes
12
  from pathlib import Path
13
  from typing import Any
14
 
 
23
  from gridops.server.environment import GridOpsEnvironment
24
  from gridops.tasks.definitions import TASKS
25
 
26
+ mimetypes.add_type("image/webp", ".webp")
27
+ mimetypes.add_type("image/svg+xml", ".svg")
28
+
29
  # Create the OpenEnv app (provides /ws, /health, /schema, /web, /docs)
30
  app = create_app(
31
  GridOpsEnvironment,