Update app.py
Browse files
app.py
CHANGED
|
@@ -19,6 +19,12 @@ For more information on `huggingface_hub` Inference API support, please check th
|
|
| 19 |
"""
|
| 20 |
#client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
| 21 |
#notebook_login()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
model_id = 'mistralai/Mistral-7B-Instruct-v0.1'
|
| 23 |
model_config = transformers.AutoConfig.from_pretrained(
|
| 24 |
model_id,
|
|
|
|
| 19 |
"""
|
| 20 |
#client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
| 21 |
#notebook_login()
|
| 22 |
+
|
| 23 |
+
token_access = HF_API_TOKEN
|
| 24 |
+
headers = {"Authorization": f"Bearer {token_access}"}
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
|
| 28 |
model_id = 'mistralai/Mistral-7B-Instruct-v0.1'
|
| 29 |
model_config = transformers.AutoConfig.from_pretrained(
|
| 30 |
model_id,
|