Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
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://
|
| 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("/")
|