devankit commited on
Commit
df66415
·
verified ·
1 Parent(s): d959d2e

Update backend/main.py

Browse files
Files changed (1) hide show
  1. backend/main.py +3 -1
backend/main.py CHANGED
@@ -67,7 +67,6 @@ def resize_image(image: Image.Image, width: int, height: int):
67
  return image.resize((width, height), Image.Resampling.LANCZOS)
68
 
69
  app = FastAPI()
70
- app.mount("/", StaticFiles(directory="./frontend/build", html=True), name="static")
71
 
72
 
73
  app.add_middleware(
@@ -218,6 +217,9 @@ async def random_seed_endpoint():
218
  async def health_check():
219
  return {"status": "healthy", "message": "AI Wallpaper Generator API is running"}
220
 
 
 
 
221
  if __name__ == "__main__":
222
  port = int(os.getenv("PORT", 7860))
223
  print("Starting AI Wallpaper Generator API...")
 
67
  return image.resize((width, height), Image.Resampling.LANCZOS)
68
 
69
  app = FastAPI()
 
70
 
71
 
72
  app.add_middleware(
 
217
  async def health_check():
218
  return {"status": "healthy", "message": "AI Wallpaper Generator API is running"}
219
 
220
+
221
+ app.mount("/", StaticFiles(directory="./frontend/build", html=True), name="static")
222
+
223
  if __name__ == "__main__":
224
  port = int(os.getenv("PORT", 7860))
225
  print("Starting AI Wallpaper Generator API...")