bupa1018 commited on
Commit
9b514b9
·
1 Parent(s): e0af1aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -78,13 +78,12 @@ def initialize():
78
  manage_hf_files(HF_TOKEN)
79
  #initialize()
80
 
 
 
81
 
82
- # Starting from the root directory
83
- start_directory = "/"
84
-
85
- # Walk through the entire file system and list all files
86
- print("Listing all files starting from the root directory:")
87
- for root, dirs, files in os.walk(start_directory):
88
  for file in files:
89
  file_path = os.path.join(root, file)
90
  print(file_path)
@@ -92,6 +91,7 @@ for root, dirs, files in os.walk(start_directory):
92
 
93
 
94
 
 
95
  def bot_kadi(history):
96
  user_query = history[-1][0]
97
  response = kadiAPY_bot.process_query(user_query)
 
78
  manage_hf_files(HF_TOKEN)
79
  #initialize()
80
 
81
+ # Get the current working directory
82
+ working_directory = os.getcwd()
83
 
84
+ # Walk through the working directory and list all files
85
+ print("Listing all files starting from the current working directory:")
86
+ for root, dirs, files in os.walk(working_directory):
 
 
 
87
  for file in files:
88
  file_path = os.path.join(root, file)
89
  print(file_path)
 
91
 
92
 
93
 
94
+
95
  def bot_kadi(history):
96
  user_query = history[-1][0]
97
  response = kadiAPY_bot.process_query(user_query)