Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,7 +77,20 @@ def initialize():
|
|
| 77 |
|
| 78 |
manage_hf_files(HF_TOKEN)
|
| 79 |
#initialize()
|
| 80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
def bot_kadi(history):
|
| 82 |
user_query = history[-1][0]
|
| 83 |
response = kadiAPY_bot.process_query(user_query)
|
|
|
|
| 77 |
|
| 78 |
manage_hf_files(HF_TOKEN)
|
| 79 |
#initialize()
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
directory = "data" # Replace with your directory path
|
| 83 |
+
|
| 84 |
+
# List all file paths in the directory
|
| 85 |
+
file_paths = [os.path.join(directory, file) for file in os.listdir(directory)]
|
| 86 |
+
|
| 87 |
+
# Print all file paths
|
| 88 |
+
print("Files in the directory:")
|
| 89 |
+
for path in file_paths:
|
| 90 |
+
print(path)
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
|
| 94 |
def bot_kadi(history):
|
| 95 |
user_query = history[-1][0]
|
| 96 |
response = kadiAPY_bot.process_query(user_query)
|