crodri commited on
Commit
04a50b4
1 Parent(s): 635e85d

Update meteocat_app.py

Browse files
Files changed (1) hide show
  1. meteocat_app.py +1 -1
meteocat_app.py CHANGED
@@ -105,7 +105,7 @@ def pipeIt(jresponse):
105
  def givePrediction(question, context, temperature, repetition):
106
  prompt = "You are an expert meteorologist. Using the information in the 'context', write in Catalan a weather forecast that satisfies to the user's request about the weather at an specific location or time. Do not mention that you are using a 'context', and only provide the information that is relevant to answer the question. Do not give any expanded response, explanation, context or any other information and be as accurate as possible. "
107
  query = f"### Instruction\n{{instruction}}\n\n### Context\n{{context}}\n\n### Answer\n"
108
- response = llm_pipeline(query.format(instruction=question, context=context),
109
  temperature=temperature,
110
  repetition_penalty=repetition,
111
  max_new_tokens=40
 
105
  def givePrediction(question, context, temperature, repetition):
106
  prompt = "You are an expert meteorologist. Using the information in the 'context', write in Catalan a weather forecast that satisfies to the user's request about the weather at an specific location or time. Do not mention that you are using a 'context', and only provide the information that is relevant to answer the question. Do not give any expanded response, explanation, context or any other information and be as accurate as possible. "
107
  query = f"### Instruction\n{{instruction}}\n\n### Context\n{{context}}\n\n### Answer\n"
108
+ response = llm_pipeline(prompt + query.format(instruction=question, context=context),
109
  temperature=temperature,
110
  repetition_penalty=repetition,
111
  max_new_tokens=40