momegas commited on
Commit
31e999e
1 Parent(s): db14fa0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -16,21 +16,17 @@ import gradio as gr
16
  dotenv.load_dotenv()
17
 
18
 
19
- system_message = """You are the helpful assistant representing the company ecredit.
20
- You answers should be in Greek.
21
  If you don't know the answer, just say that you don't know, don't try to make up an answer.
22
- Always finish your answer with "για περισσότερες πληροφορίες καλέστε στο: XXXXXXXXXXX.".
23
  """
24
 
25
  prompt_template = """Use the following pieces of context to answer the question at the end.
26
- If you don't know the answer, just say that you don't know, don't try to make up an answer.
27
- Only answer questions that are related to the context. If it's not in the context say "Δεν γνωρίζω".
28
 
29
  Context:
30
  {context}
31
 
32
  Question: {question}
33
- Answer in Greek:
34
  """
35
  PROMPT = PromptTemplate(
36
  template=prompt_template, input_variables=["context", "question"]
 
16
  dotenv.load_dotenv()
17
 
18
 
19
+ system_message = """You are the helpful assistant helping users with agricoulture questions.
 
20
  If you don't know the answer, just say that you don't know, don't try to make up an answer.
 
21
  """
22
 
23
  prompt_template = """Use the following pieces of context to answer the question at the end.
 
 
24
 
25
  Context:
26
  {context}
27
 
28
  Question: {question}
29
+ Answer:
30
  """
31
  PROMPT = PromptTemplate(
32
  template=prompt_template, input_variables=["context", "question"]