rahul2121 commited on
Commit
d97f996
·
verified ·
1 Parent(s): 0f27669

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ HF_TOKEN = os.environ.get("HF_TOKEN")
11
  if not HF_TOKEN:
12
  raise Exception("HF_TOKEN is missing. Add it in Space Secrets.")
13
 
14
- API_URL = "https://api-inference.huggingface.co/models/castorini/t5-base-canard"
15
  HEADERS = {"Authorization": f"Bearer {HF_TOKEN}"}
16
 
17
  @app.route("/")
 
11
  if not HF_TOKEN:
12
  raise Exception("HF_TOKEN is missing. Add it in Space Secrets.")
13
 
14
+ API_URL = "https://router.huggingface.co/hf-inference/models/castorini/t5-base-canard"
15
  HEADERS = {"Authorization": f"Bearer {HF_TOKEN}"}
16
 
17
  @app.route("/")