alaselababatunde commited on
Commit
b94f09a
·
1 Parent(s): 19a4f78
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -44,7 +44,7 @@ crop_template = PromptTemplate(
44
  template="You are an agricultural crop doctor. A farmer reports: {symptoms}. Diagnose the most likely disease and suggest treatments in simple farmer-friendly language."
45
  )
46
  crop_llm = HuggingFaceEndpoint(
47
- repo_id="meta-llama/Llama-2-7b-chat-hf",
48
  task="conversational"
49
  )
50
 
@@ -54,7 +54,7 @@ chat_template = PromptTemplate(
54
  template="You are a multilingual AI assistant for farmers. Answer clearly in the same language as the user. Farmer says: {query}"
55
  )
56
  chat_llm = HuggingFaceEndpoint(
57
- repo_id="meta-llama/Llama-2-13b-chat-hf",
58
  task="conversational"
59
  )
60
 
@@ -64,7 +64,7 @@ disaster_template = PromptTemplate(
64
  template="You are an AI disaster assistant. Summarize the following report for farmers in simple steps: {report}"
65
  )
66
  disaster_llm = HuggingFaceEndpoint(
67
- repo_id="meta-llama/Llama-2-7b-chat-hf",
68
  task="conversational"
69
  )
70
 
@@ -74,7 +74,7 @@ market_template = PromptTemplate(
74
  template="You are an agricultural marketplace recommender. Farmer wants to sell or buy: {product}. Suggest possible matches and advice."
75
  )
76
  market_llm = HuggingFaceEndpoint(
77
- repo_id="meta-llama/Llama-2-13b-chat-hf",
78
  task="conversational"
79
  )
80
 
 
44
  template="You are an agricultural crop doctor. A farmer reports: {symptoms}. Diagnose the most likely disease and suggest treatments in simple farmer-friendly language."
45
  )
46
  crop_llm = HuggingFaceEndpoint(
47
+ repo_id="meta-llama/Llama-3.2-11B-Vision-Instruct",
48
  task="conversational"
49
  )
50
 
 
54
  template="You are a multilingual AI assistant for farmers. Answer clearly in the same language as the user. Farmer says: {query}"
55
  )
56
  chat_llm = HuggingFaceEndpoint(
57
+ repo_id="meta-llama/Llama-3.1-8B-Instruct",
58
  task="conversational"
59
  )
60
 
 
64
  template="You are an AI disaster assistant. Summarize the following report for farmers in simple steps: {report}"
65
  )
66
  disaster_llm = HuggingFaceEndpoint(
67
+ repo_id="meta-llama/Llama-3.1-8B-Instruct",
68
  task="conversational"
69
  )
70
 
 
74
  template="You are an agricultural marketplace recommender. Farmer wants to sell or buy: {product}. Suggest possible matches and advice."
75
  )
76
  market_llm = HuggingFaceEndpoint(
77
+ repo_id="meta-llama/Llama-3.1-8B-Instruct",
78
  task="conversational"
79
  )
80