diff --git a/main.ipynb b/main.ipynb index 588be68..2f1f9be 100644 --- a/main.ipynb +++ b/main.ipynb @@ -3022,8 +3022,6 @@ "metadata": {}, "outputs": [], "source": [ - "\n", - "\n", "@app.get(\"/form/exhibition/{exhibition_id}\", response_class=HTMLResponse)\n", "async def form_exhibition(\n", " request: Request,\n", @@ -3058,8 +3056,7 @@ " background_tasks.add_task(logo_user_task, bson_clear(current_user))\n", " return {'ok': True}\n", " except Exception as e:\n", - " raise HTTPException(status_code=500, detail=str(e))\n", - "\n" + " raise HTTPException(status_code=500, detail=str(e))\n" ], "display_name": ".venv" }, diff --git a/main.py b/main.py index df2bd0e..3755a42 100644 --- a/main.py +++ b/main.py @@ -2238,8 +2238,6 @@ async def form_exhibition( request=request, name="form/exhibition.html", context={"id": 1, "user": user} ) - - @app.get("/form/exhibition/{exhibition_id}", response_class=HTMLResponse) async def form_exhibition( request: Request, @@ -2268,7 +2266,6 @@ async def avatar_change( raise HTTPException(status_code=500, detail=str(e)) - @app.put("/api/user/form", response_model=dict) async def user_form( request: Request, diff --git a/utils.py b/utils.py index e6fd989..9d90bad 100644 --- a/utils.py +++ b/utils.py @@ -352,7 +352,7 @@ def is_safe_redirect(next_url: str) -> bool: return False -async def build_composite(data, scale: float = 1.5, new_w: int = 500, GaussianBlur_radius: int = 10): +async def build_composite(data, scale: float = 1.5, new_w: int = 500, GaussianBlur_radius: int = 80): src_img = Image.open(BytesIO(data)).convert('RGB') # --------------------------------------------------------------