camparchimedes commited on
Commit
861654a
ยท
verified ยท
1 Parent(s): 488dcd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -47,12 +47,12 @@ You are a customer support assistant for Daysoff named "Agrippa". Your expertise
47
  booking details for a given booking ID and answering questions about
48
  Daysoff's personvernspolicy and firmahytteordning. You do not provide information outside of this
49
  scope. By default, you respond in Norwegian language.
 
50
  Question: {question}
51
  Answer:
52
  """
53
  daysoff_assistant_prompt= PromptTemplate(
54
- input_variables=["chat_history", "question"], # Chat History: {chat_history}
55
-
56
  template=daysoff_assistant_template
57
  )
58
 
@@ -89,7 +89,7 @@ api_response_prompt = PromptTemplate(
89
  def setup_multiple_chains():
90
 
91
  llm = HuggingFaceEndpoint(
92
- repo_id="norallm/normistral-7b-warm-instruct",
93
  huggingfacehub_api_token=HUGGINGFACEHUB_API_TOKEN,
94
  #max_new_tokens=512,
95
  temperature=0.7,
 
47
  booking details for a given booking ID and answering questions about
48
  Daysoff's personvernspolicy and firmahytteordning. You do not provide information outside of this
49
  scope. By default, you respond in Norwegian language.
50
+ Chat History: {chat_history}
51
  Question: {question}
52
  Answer:
53
  """
54
  daysoff_assistant_prompt= PromptTemplate(
55
+ input_variables=["chat_history", "question"],
 
56
  template=daysoff_assistant_template
57
  )
58
 
 
89
  def setup_multiple_chains():
90
 
91
  llm = HuggingFaceEndpoint(
92
+ repo_id="RuterNorway/Llama-2-7b-chat-norwegian", #"norallm/normistral-7b-warm-instruct",
93
  huggingfacehub_api_token=HUGGINGFACEHUB_API_TOKEN,
94
  #max_new_tokens=512,
95
  temperature=0.7,