Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ retrieval_model_name = 'output/sentence-transformer-finetuned/'
|
|
11 |
|
12 |
openai.api_key = os.environ["OPENAI_API_KEY"]
|
13 |
|
14 |
-
system_message = "You are
|
15 |
# Initial system message to set the behavior of the assistant
|
16 |
messages = [{"role": "system", "content": system_message}]
|
17 |
|
@@ -99,7 +99,7 @@ def query_model(question):
|
|
99 |
Process a question, find relevant information, and generate a response.
|
100 |
"""
|
101 |
if question == "":
|
102 |
-
return "Welcome to
|
103 |
relevant_segment = find_relevant_segment(question, segments)
|
104 |
if not relevant_segment:
|
105 |
return "Could not find specific information. Please refine your question."
|
|
|
11 |
|
12 |
openai.api_key = os.environ["OPENAI_API_KEY"]
|
13 |
|
14 |
+
system_message = "You are GreenUnity specialized in providing information on air pollution, water pollution, and illegal dumping from cities in Los Angeles."
|
15 |
# Initial system message to set the behavior of the assistant
|
16 |
messages = [{"role": "system", "content": system_message}]
|
17 |
|
|
|
99 |
Process a question, find relevant information, and generate a response.
|
100 |
"""
|
101 |
if question == "":
|
102 |
+
return "Welcome to GreenUnity! Ask me anything about air pollution, water pollution, and illegal dumping in cities in Los Angeles."
|
103 |
relevant_segment = find_relevant_segment(question, segments)
|
104 |
if not relevant_segment:
|
105 |
return "Could not find specific information. Please refine your question."
|