International Rice Research Institute commited on
Commit
030fd00
·
verified ·
1 Parent(s): 03ef429

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +2 -1
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://api-inference.huggingface.co/models/", alt_model)
 
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(