Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,8 @@ import os
|
|
3 |
#os.environ["MISTRAL_API_KEY"] = getpass.getpass()
|
4 |
#os.environ["HF_TOKEN"] = getpass.getpass()
|
5 |
api_key = os.getenv("HF_TOKEN")
|
|
|
|
|
|
|
|
|
6 |
|
7 |
-
|
8 |
-
# Usa la API Key en tu c贸digo
|
9 |
-
print(api_key)
|
|
|
3 |
#os.environ["MISTRAL_API_KEY"] = getpass.getpass()
|
4 |
#os.environ["HF_TOKEN"] = getpass.getpass()
|
5 |
api_key = os.getenv("HF_TOKEN")
|
6 |
+
client = HuggingFaceHub(repo_id = 'mistralai/Mathstral-7B-v0.1') # 'mistralai/Mathstral-7B-v0.1')
|
7 |
+
prompt = "What is the best French cheese?"
|
8 |
+
response = client(prompt)
|
9 |
+
print(response)
|
10 |
|
|
|
|
|
|