ford442 commited on
Commit
0e2e301
·
verified ·
1 Parent(s): 8555914

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -36,11 +36,10 @@ STORAGE_MAP = {
36
  "music": {"folder": "music/", "index": "music/_music.json"},
37
  "note": {"folder": "notes/", "index": "notes/_notes.json"},
38
  "default": {"folder": "misc/", "index": "misc/_misc.json"},
39
- "shaders": {
40
- "bucket": "your-gcs-bucket",
41
- "prefix": "shaders/",
42
- "allowed_ext": [".wgsl", ".json"]
43
- }
44
  }
45
 
46
  # --- GLOBAL OBJECTS ---
@@ -1024,6 +1023,6 @@ async def rate_shader(shader_id: str, rating: float): # 1.0–5.0
1024
  @app.get("/api/shaders")
1025
  async def list_shaders(category: str = None, min_stars: float = 0):
1026
  # return sorted list with description + avg stars
1027
-
1028
  if __name__ == "__main__":
1029
  uvicorn.run(app, host="0.0.0.0", port=7860)
 
36
  "music": {"folder": "music/", "index": "music/_music.json"},
37
  "note": {"folder": "notes/", "index": "notes/_notes.json"},
38
  "default": {"folder": "misc/", "index": "misc/_misc.json"},
39
+ "shader": {
40
+ "folder": "shaders/",
41
+ "index": "shaders/_shaders.json"
42
+ },
 
43
  }
44
 
45
  # --- GLOBAL OBJECTS ---
 
1023
  @app.get("/api/shaders")
1024
  async def list_shaders(category: str = None, min_stars: float = 0):
1025
  # return sorted list with description + avg stars
1026
+
1027
  if __name__ == "__main__":
1028
  uvicorn.run(app, host="0.0.0.0", port=7860)