Alexvatti commited on
Commit
f3dca2b
·
verified ·
1 Parent(s): 441da0f

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +7 -7
main.py CHANGED
@@ -104,16 +104,16 @@ def process_files(files, industry):
104
 
105
  # Generate name based on LLM and include timestamp for uniqueness
106
  content_name = generate_name_based_on_content(text,industry) if text else 'Untitled'
107
- directory_name = f"{industry}_{content_name}_{timestamp}"
108
- new_dir = os.path.join(UPLOAD_FOLDER, directory_name)
109
- if not os.path.exists(new_dir):
110
- os.makedirs(new_dir)
111
 
112
  # Rename and move the file to the new directory
113
- new_file_path = os.path.join(new_dir, f"{directory_name}_{filename}")
114
- shutil.move(file_path, new_file_path)
115
 
116
- directories.append(directory_name)
117
 
118
  return directories
119
 
 
104
 
105
  # Generate name based on LLM and include timestamp for uniqueness
106
  content_name = generate_name_based_on_content(text,industry) if text else 'Untitled'
107
+ #directory_name = f"{industry}_{content_name}_{timestamp}"
108
+ #new_dir = os.path.join(UPLOAD_FOLDER, directory_name)
109
+ #if not os.path.exists(new_dir):
110
+ # os.makedirs(new_dir)
111
 
112
  # Rename and move the file to the new directory
113
+ #new_file_path = os.path.join(new_dir, f"{directory_name}_{filename}")
114
+ #shutil.move(file_path, new_file_path)
115
 
116
+ directories.append(content_name)
117
 
118
  return directories
119