Spaces:
Running
Running
Update src/aibom_generator/api.py
Browse files
src/aibom_generator/api.py
CHANGED
@@ -615,8 +615,12 @@ async def generate_form(
|
|
615 |
model_id: str = Form(...),
|
616 |
include_inference: bool = Form(False),
|
617 |
use_best_practices: bool = Form(True),
|
618 |
-
g_recaptcha_response: Optional[str] = Form(None)
|
619 |
):
|
|
|
|
|
|
|
|
|
620 |
# Verify CAPTCHA
|
621 |
if not verify_recaptcha(g_recaptcha_response):
|
622 |
return templates.TemplateResponse(
|
|
|
615 |
model_id: str = Form(...),
|
616 |
include_inference: bool = Form(False),
|
617 |
use_best_practices: bool = Form(True),
|
618 |
+
g_recaptcha_response: Optional[str] = Form(None)
|
619 |
):
|
620 |
+
# Debug log all form data
|
621 |
+
form_data = await request.form()
|
622 |
+
logger.info(f"All form data: {dict(form_data)}")
|
623 |
+
|
624 |
# Verify CAPTCHA
|
625 |
if not verify_recaptcha(g_recaptcha_response):
|
626 |
return templates.TemplateResponse(
|