Spaces:
Sleeping
Sleeping
utkarshgogna1
commited on
Commit
•
3d83ab2
1
Parent(s):
6a70d19
Upload folder using huggingface_hub
Browse files
gradio_app.py
CHANGED
@@ -36,7 +36,9 @@ embedding_model = AutoModel.from_pretrained(EMBEDDING_MODEL_NAME)
|
|
36 |
rerank_model = CrossEncoder("mixedbread-ai/mxbai-rerank-large-v1")
|
37 |
|
38 |
# Load Hugging Face API tokens from environment variables
|
39 |
-
HF_API_TOKEN = os.
|
|
|
|
|
40 |
|
41 |
# Define Hugging Face API URLs
|
42 |
MISTRAL_API_URL = "https://api-inference.huggingface.co/models/mistralai/Mistral-7B-Instruct-v0.3"
|
|
|
36 |
rerank_model = CrossEncoder("mixedbread-ai/mxbai-rerank-large-v1")
|
37 |
|
38 |
# Load Hugging Face API tokens from environment variables
|
39 |
+
HF_API_TOKEN = os.environ["HF_API_TOKEN"] # Unified token for all models
|
40 |
+
print(os.environ)
|
41 |
+
print(HF_API_TOKEN)
|
42 |
|
43 |
# Define Hugging Face API URLs
|
44 |
MISTRAL_API_URL = "https://api-inference.huggingface.co/models/mistralai/Mistral-7B-Instruct-v0.3"
|
uploads/112ca78e-9113-4b73-be18-e796dbca07bb_uploaded_file.pdf
ADDED
Binary file (27.1 kB). View file
|
|