Spaces:
Running
Running
Update app.py
Browse files
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
|
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
|
|
|
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="
|
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")
|