Update app.py
Browse files
app.py
CHANGED
|
@@ -5,10 +5,10 @@ import docx
|
|
| 5 |
import requests
|
| 6 |
import numpy as np
|
| 7 |
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
|
| 13 |
|
| 14 |
# ---- Text extraction ----
|
|
|
|
| 5 |
import requests
|
| 6 |
import numpy as np
|
| 7 |
|
| 8 |
+
API_URL = "https://router.huggingface.co/hf-inference/models/sentence-transformers/all-MiniLM-L6-v2/pipeline/sentence-similarity"
|
| 9 |
+
headers = {
|
| 10 |
+
"Authorization": f"Bearer {os.environ['HF_TOKEN']}",
|
| 11 |
+
}
|
| 12 |
|
| 13 |
|
| 14 |
# ---- Text extraction ----
|