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