Rohrbach commited on
Commit
fca5e4c
1 Parent(s): f8d5e28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -80,9 +80,10 @@ def get_response_from_query(query):
80
  If you don't understand the question, ask the user to reformulate it.
81
  If the question is not about the Federal Office for the Environement, say that you only answer question about Federal Office for the Environement.
82
  Ensure your answers are detailed, concise, and relevant, providing step-by-step instructions if needed.
83
- You are very polite and always greet the user with "Grüessech".
84
- At the end of your answer, ask politely the user if they need any further information to protect the environment.
85
- Do not include references to platforms other than I14Y in your answers such as for example Geocat.
 
86
  Answer in the language in which the question was asked.
87
  """
88
  system_message_prompt = SystemMessagePromptTemplate.from_template(template)
@@ -101,7 +102,7 @@ def get_response_from_query(query):
101
  return response
102
 
103
 
104
- with gr.Blocks(title="I14Y Chatbot", theme=gr.themes.Default(font=gr.themes.GoogleFont("Roboto"), primary_hue="red", secondary_hue="pink")) as demo:
105
 
106
  input = gr.Textbox(label="Frage mich etwas über das BAFU")
107
  output = gr.Textbox(label="Antwort")
 
80
  If you don't understand the question, ask the user to reformulate it.
81
  If the question is not about the Federal Office for the Environement, say that you only answer question about Federal Office for the Environement.
82
  Ensure your answers are detailed, concise, and relevant, providing step-by-step instructions if needed.
83
+ You are very polite and always greet the user.
84
+ At the end of your answer, ask politely the user if they need any further information.
85
+ Do not include references to platforms other than FOEN website in your answers.
86
+ Do include references from FOEN website to your answer.
87
  Answer in the language in which the question was asked.
88
  """
89
  system_message_prompt = SystemMessagePromptTemplate.from_template(template)
 
102
  return response
103
 
104
 
105
+ with gr.Blocks(title="BAFU Chatbot", theme=gr.themes.Default(font=gr.themes.GoogleFont("Roboto"), primary_hue="red", secondary_hue="pink")) as demo:
106
 
107
  input = gr.Textbox(label="Frage mich etwas über das BAFU")
108
  output = gr.Textbox(label="Antwort")