Update app.py
Browse files
app.py
CHANGED
@@ -482,8 +482,10 @@ class IntelligentAgent:
|
|
482 |
return image_files, audio_files, code_files
|
483 |
|
484 |
try:
|
|
|
|
|
485 |
# Construct the file path (assuming file is in current directory)
|
486 |
-
file_path = os.path.join(
|
487 |
|
488 |
# Check if file exists
|
489 |
if not os.path.exists(file_path):
|
|
|
482 |
return image_files, audio_files, code_files
|
483 |
|
484 |
try:
|
485 |
+
api_url = DEFAULT_API_URL
|
486 |
+
files_url = f"{api_url}/files"
|
487 |
# Construct the file path (assuming file is in current directory)
|
488 |
+
file_path = os.path.join(files_url, file_name)
|
489 |
|
490 |
# Check if file exists
|
491 |
if not os.path.exists(file_path):
|