Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -81,10 +81,13 @@ torch.cuda.empty_cache()
|
|
| 81 |
#pip install wandb
|
| 82 |
import os
|
| 83 |
import wandb
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
#print(os.getenv('API_KEY'))
|
| 85 |
-
os.environ["API_KEY"]
|
| 86 |
|
| 87 |
-
wandb.login(key="API_KEY")
|
| 88 |
from transformers import MT5ForConditionalGeneration, Seq2SeqTrainingArguments, Seq2SeqTrainer
|
| 89 |
import torch
|
| 90 |
|
|
|
|
| 81 |
#pip install wandb
|
| 82 |
import os
|
| 83 |
import wandb
|
| 84 |
+
api_key = os.getenv("API_KEY")
|
| 85 |
+
|
| 86 |
+
# Authenticate with WandB
|
| 87 |
+
wandb.login(key=api_key)
|
| 88 |
#print(os.getenv('API_KEY'))
|
| 89 |
+
#os.environ["API_KEY"]
|
| 90 |
|
|
|
|
| 91 |
from transformers import MT5ForConditionalGeneration, Seq2SeqTrainingArguments, Seq2SeqTrainer
|
| 92 |
import torch
|
| 93 |
|