Spaces:
Sleeping
Sleeping
International Rice Research Institute commited on
Update app.R
Browse files
app.R
CHANGED
|
@@ -118,7 +118,8 @@ if (token_exists && api_test$success) {
|
|
| 118 |
if (alt_model == hf_model) next
|
| 119 |
|
| 120 |
print(paste("Trying alternative model:", alt_model))
|
| 121 |
-
test_url <- paste0("https://
|
|
|
|
| 122 |
|
| 123 |
tryCatch({
|
| 124 |
response <- POST(
|
|
|
|
| 118 |
if (alt_model == hf_model) next
|
| 119 |
|
| 120 |
print(paste("Trying alternative model:", alt_model))
|
| 121 |
+
test_url <- paste0("https://router.huggingface.co/hf-inference/models/", alt_model)
|
| 122 |
+
# url <- paste0("https://router.huggingface.co/hf-inference/models/", model)
|
| 123 |
|
| 124 |
tryCatch({
|
| 125 |
response <- POST(
|