Spaces:
Running
Running
Update app.py
Browse filesupdate file_path column name
app.py
CHANGED
@@ -76,7 +76,7 @@ def analyze():
|
|
76 |
return jsonify({"error": "File ID is required"}), 400
|
77 |
|
78 |
# Fetch file path from Supabase
|
79 |
-
file_data = supabase_client.table("files").select("
|
80 |
log_debug("Supabase file data response", status_code=file_data.status_code, data=file_data.data)
|
81 |
if file_data.status_code != 200 or not file_data.data:
|
82 |
return jsonify({"error": "File not found"}), 404
|
|
|
76 |
return jsonify({"error": "File ID is required"}), 400
|
77 |
|
78 |
# Fetch file path from Supabase
|
79 |
+
file_data = supabase_client.table("files").select("file_path").eq("id", file_id).single().execute()
|
80 |
log_debug("Supabase file data response", status_code=file_data.status_code, data=file_data.data)
|
81 |
if file_data.status_code != 200 or not file_data.data:
|
82 |
return jsonify({"error": "File not found"}), 404
|