Mathstral / app.py
JaphetHernandez's picture
Update app.py
4851603 verified
raw
history blame
336 Bytes
import getpass
import os
#os.environ["MISTRAL_API_KEY"] = getpass.getpass()
#os.environ["HF_TOKEN"] = getpass.getpass()
api_key = os.getenv("HF_TOKEN")
client = HuggingFaceHub(repo_id = 'mistralai/Mathstral-7B-v0.1') # 'mistralai/Mathstral-7B-v0.1')
prompt = "What is the best French cheese?"
response = client(prompt)
print(response)