Update generation_script.py
Browse files- generation_script.py +7 -8
generation_script.py
CHANGED
@@ -14,6 +14,13 @@ import pandas as pd
|
|
14 |
from datasets import Dataset
|
15 |
from huggingface_hub import login
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
"""# Get files"""
|
18 |
|
19 |
# Main page URL
|
@@ -77,14 +84,6 @@ if main_response.status_code == 200:
|
|
77 |
else:
|
78 |
print(f'Error accessing the main page: {main_response.status_code}')
|
79 |
|
80 |
-
"""# Configure apikey"""
|
81 |
-
|
82 |
-
load_dotenv()
|
83 |
-
GEMINI_API_KEY = "AIzaSyB46xwQbdXC_TK3Wnl3kt-oXtqKN8dRYfI"
|
84 |
-
# TODO: PONER AQUI EL TOKEN
|
85 |
-
HF_TOKEN= ""
|
86 |
-
HF_DATASET_NAME="RafaelJaime/sas_opposition_exam_data"
|
87 |
-
|
88 |
"""# PDF processing
|
89 |
|
90 |
## Extract text
|
|
|
14 |
from datasets import Dataset
|
15 |
from huggingface_hub import login
|
16 |
|
17 |
+
"""# Configure apikey"""
|
18 |
+
# TODO: Add your own customization
|
19 |
+
load_dotenv()
|
20 |
+
GEMINI_API_KEY = ""
|
21 |
+
HF_TOKEN= ""
|
22 |
+
HF_DATASET_NAME=""
|
23 |
+
|
24 |
"""# Get files"""
|
25 |
|
26 |
# Main page URL
|
|
|
84 |
else:
|
85 |
print(f'Error accessing the main page: {main_response.status_code}')
|
86 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
"""# PDF processing
|
88 |
|
89 |
## Extract text
|