Spaces:
Runtime error
Runtime error
Andreas Varvarigos commited on
Update src/litbench_pipeline.py
Browse files- src/litbench_pipeline.py +4 -4
src/litbench_pipeline.py
CHANGED
|
@@ -34,14 +34,14 @@ from peft.peft_model import PeftModel
|
|
| 34 |
from datasets import load_dataset
|
| 35 |
from huggingface_hub import login
|
| 36 |
|
|
|
|
| 37 |
# Load token from Hugging Face Secrets
|
| 38 |
-
HF_TOKEN = os.getenv("
|
| 39 |
-
# Login using the token
|
| 40 |
-
print("HF_TOKEN: ", HF_TOKEN)
|
| 41 |
if HF_TOKEN:
|
| 42 |
-
print("HERE???")
|
| 43 |
login(HF_TOKEN)
|
| 44 |
|
|
|
|
| 45 |
# Function to determine the chatbot's first message based on user choices
|
| 46 |
def setup(download_option, train_option):
|
| 47 |
download_papers.value = (download_option == "Download Paper")
|
|
|
|
| 34 |
from datasets import load_dataset
|
| 35 |
from huggingface_hub import login
|
| 36 |
|
| 37 |
+
|
| 38 |
# Load token from Hugging Face Secrets
|
| 39 |
+
HF_TOKEN = os.getenv("access_token")
|
| 40 |
+
# Login using the token
|
|
|
|
| 41 |
if HF_TOKEN:
|
|
|
|
| 42 |
login(HF_TOKEN)
|
| 43 |
|
| 44 |
+
|
| 45 |
# Function to determine the chatbot's first message based on user choices
|
| 46 |
def setup(download_option, train_option):
|
| 47 |
download_papers.value = (download_option == "Download Paper")
|