JaphetHernandez commited on
Commit
2172643
·
verified ·
1 Parent(s): 93777b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)