Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -630,9 +630,8 @@ async def upload_csv(
|
|
630 |
video_path: str = Form(...)
|
631 |
):
|
632 |
try:
|
633 |
-
target_dir = UPLOAD_DIR
|
634 |
csv_filename = Path(video_path).stem + ".csv"
|
635 |
-
csv_path =
|
636 |
|
637 |
if not csv_path.exists():
|
638 |
raise HTTPException(status_code=404, detail="Le fichier CSV n'existe pas.")
|
|
|
630 |
video_path: str = Form(...)
|
631 |
):
|
632 |
try:
|
|
|
633 |
csv_filename = Path(video_path).stem + ".csv"
|
634 |
+
csv_path = UPLOAD_DIR / csv_filename
|
635 |
|
636 |
if not csv_path.exists():
|
637 |
raise HTTPException(status_code=404, detail="Le fichier CSV n'existe pas.")
|