Spaces:
Runtime error
Runtime error
Achille Thin - Genesis
commited on
Commit
·
71e862f
1
Parent(s):
2dc91d0
model tiny
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ placeholder = (
|
|
22 |
"Vous pouvez me posez une question sur ce contexte, appuyer sur Entrée pour valider"
|
23 |
)
|
24 |
placeholder_url = "Extract text from this url"
|
25 |
-
llm_model = "mistral-
|
26 |
|
27 |
env_api_key = os.environ.get("MISTRAL_API_KEY")
|
28 |
query_engine = None
|
@@ -61,7 +61,7 @@ def create_prompt(farmSize, cultures):
|
|
61 |
prompt += """I need you to answer in French formulating a concise table with the crops you want to grow and by parcel, and predicting gross margin per hectare according to the scenario asked for (mean, pessimistic or optimistic. Default: mean).
|
62 |
Réponds en français en formulant un tableau concis avec les cultures que tu veux cultiver et par parcelle, et en prévoyant la marge brute et le coût par hectare selon le scénario demandé (moyen, pessimiste ou optimiste. Par défaut : moyen).\n"
|
63 |
"""
|
64 |
-
|
65 |
#prompt += "Le scénario choisi est le moyen."
|
66 |
return prompt
|
67 |
|
|
|
22 |
"Vous pouvez me posez une question sur ce contexte, appuyer sur Entrée pour valider"
|
23 |
)
|
24 |
placeholder_url = "Extract text from this url"
|
25 |
+
llm_model = "mistral-tiny"
|
26 |
|
27 |
env_api_key = os.environ.get("MISTRAL_API_KEY")
|
28 |
query_engine = None
|
|
|
61 |
prompt += """I need you to answer in French formulating a concise table with the crops you want to grow and by parcel, and predicting gross margin per hectare according to the scenario asked for (mean, pessimistic or optimistic. Default: mean).
|
62 |
Réponds en français en formulant un tableau concis avec les cultures que tu veux cultiver et par parcelle, et en prévoyant la marge brute et le coût par hectare selon le scénario demandé (moyen, pessimiste ou optimiste. Par défaut : moyen).\n"
|
63 |
"""
|
64 |
+
print(prompt)
|
65 |
#prompt += "Le scénario choisi est le moyen."
|
66 |
return prompt
|
67 |
|