Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -8,8 +8,8 @@ from huggingface_hub import login
|
|
8 |
# Token Secret of Hugging Face
|
9 |
huggingface_token = st.secrets["TF_TOKEN2"]
|
10 |
login(huggingface_token)
|
11 |
-
#api_key = os.getenv("
|
12 |
-
client = HuggingFaceHub(repo_id = 'mistralai/Mathstral-7B-v0.1', huggingfacehub_api_token="
|
13 |
prompt = "What is the best French cheese?"
|
14 |
response = client(prompt)
|
15 |
print(response)
|
|
|
8 |
# Token Secret of Hugging Face
|
9 |
huggingface_token = st.secrets["TF_TOKEN2"]
|
10 |
login(huggingface_token)
|
11 |
+
#api_key = os.getenv("HF_TOKEN2")
|
12 |
+
client = HuggingFaceHub(repo_id = 'mistralai/Mathstral-7B-v0.1', huggingfacehub_api_token="HF_TOKEN2") # 'mistralai/Mathstral-7B-v0.1')
|
13 |
prompt = "What is the best French cheese?"
|
14 |
response = client(prompt)
|
15 |
print(response)
|