Spaces:
Sleeping
Sleeping
International Rice Research Institute commited on
Update app.R
Browse files
app.R
CHANGED
|
@@ -21,10 +21,9 @@ for (pkg in required_packages) {
|
|
| 21 |
# TOKEN DEBUG
|
| 22 |
# ============================================================
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
print("=== HUGGING FACE API TOKEN DEBUG ===")
|
| 29 |
print(paste("Token exists:", token_exists))
|
| 30 |
print(paste("Token length:", token_length))
|
|
|
|
| 21 |
# TOKEN DEBUG
|
| 22 |
# ============================================================
|
| 23 |
|
| 24 |
+
HF_API_TOKEN <- Sys.getenv("GROQ_API_KEY")
|
| 25 |
+
HF_API_URL <- "https://api.groq.com/openai/v1/chat/completions"
|
| 26 |
+
default_model <- "llama-3.1-8b-instant"
|
|
|
|
| 27 |
print("=== HUGGING FACE API TOKEN DEBUG ===")
|
| 28 |
print(paste("Token exists:", token_exists))
|
| 29 |
print(paste("Token length:", token_length))
|