Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -243,7 +243,7 @@ def match_generic_to_product_master(
|
|
| 243 |
molecule_col: str,
|
| 244 |
brand_id_col: Optional[str],
|
| 245 |
brand_name_col: Optional[str],
|
| 246 |
-
min_score: float =
|
| 247 |
return_all: bool = False
|
| 248 |
) -> List[Dict[str, Any]]:
|
| 249 |
subset = pm_df.dropna(subset=[molecule_col]).copy()
|
|
@@ -296,7 +296,7 @@ async def match_with_difflib(
|
|
| 296 |
rfq_file: UploadFile = File(...),
|
| 297 |
product_master_json: UploadFile = File(...),
|
| 298 |
min_score: float = Query(
|
| 299 |
-
|
| 300 |
):
|
| 301 |
try:
|
| 302 |
# RFQ
|
|
@@ -361,7 +361,7 @@ async def match_with_difflib_debug(
|
|
| 361 |
rfq_file: UploadFile = File(...),
|
| 362 |
product_master_json: UploadFile = File(...),
|
| 363 |
sample: int = Query(5, ge=1, le=200),
|
| 364 |
-
min_score: float = Query(
|
| 365 |
sample_contains: str = Query(
|
| 366 |
"", description="Filter RFQ rows by substring (case-insensitive)")
|
| 367 |
):
|
|
|
|
| 243 |
molecule_col: str,
|
| 244 |
brand_id_col: Optional[str],
|
| 245 |
brand_name_col: Optional[str],
|
| 246 |
+
min_score: float = 60.0,
|
| 247 |
return_all: bool = False
|
| 248 |
) -> List[Dict[str, Any]]:
|
| 249 |
subset = pm_df.dropna(subset=[molecule_col]).copy()
|
|
|
|
| 296 |
rfq_file: UploadFile = File(...),
|
| 297 |
product_master_json: UploadFile = File(...),
|
| 298 |
min_score: float = Query(
|
| 299 |
+
60.0, description="Minimum composite score (0-100)")
|
| 300 |
):
|
| 301 |
try:
|
| 302 |
# RFQ
|
|
|
|
| 361 |
rfq_file: UploadFile = File(...),
|
| 362 |
product_master_json: UploadFile = File(...),
|
| 363 |
sample: int = Query(5, ge=1, le=200),
|
| 364 |
+
min_score: float = Query(60.0),
|
| 365 |
sample_contains: str = Query(
|
| 366 |
"", description="Filter RFQ rows by substring (case-insensitive)")
|
| 367 |
):
|