Update app.py
Browse files
app.py
CHANGED
@@ -14,8 +14,24 @@ import time
|
|
14 |
from openai import OpenAI
|
15 |
import sys
|
16 |
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
model = SentenceTransformer("Lajavaness/bilingual-embedding-large", trust_remote_code=True)
|
20 |
|
21 |
token = os.environ["GITHUB_TOKEN"]
|
|
|
14 |
from openai import OpenAI
|
15 |
import sys
|
16 |
|
17 |
+
current_directory = os.getcwd()
|
18 |
+
|
19 |
+
folder_name = "qids_folder"
|
20 |
+
new_folder_path_1 = os.path.join(current_directory, folder_name)
|
21 |
+
if not os.path.exists(new_folder_path_1):
|
22 |
+
os.mkdir(new_folder_path_1)
|
23 |
+
print(f"Folder '{folder_name}' created at {new_folder_path_1}")
|
24 |
+
else:
|
25 |
+
print(f"Folder '{folder_name}' already exists.")
|
26 |
+
|
27 |
+
folder_name_2 = "info_extraction"
|
28 |
+
new_folder_path_2 = os.path.join(current_directory, folder_name)
|
29 |
+
if not os.path.exists(new_folder_path_2):
|
30 |
+
os.mkdir(new_folder_path_2)
|
31 |
+
print(f"Folder '{folder_name}' created at {new_folder_path_2}")
|
32 |
+
else:
|
33 |
+
print(f"Folder '{folder_name}' already exists.")
|
34 |
+
|
35 |
model = SentenceTransformer("Lajavaness/bilingual-embedding-large", trust_remote_code=True)
|
36 |
|
37 |
token = os.environ["GITHUB_TOKEN"]
|