tatianija commited on
Commit
3960310
·
verified ·
1 Parent(s): d79684d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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(os.getcwd(), file_name)
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):