Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,7 +64,7 @@ def find_relevant_segment(user_query, segments):
|
|
| 64 |
|
| 65 |
def generate_response(user_query, relevant_segment):
|
| 66 |
"""
|
| 67 |
-
Generate a response emphasizing the bot's capability in providing artist reccomendations.
|
| 68 |
"""
|
| 69 |
try:
|
| 70 |
user_message = f"Here's your reccomendations: {relevant_segment}"
|
|
@@ -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
|
| 103 |
relevant_segment = find_relevant_segment(question, segments)
|
| 104 |
if not relevant_segment:
|
| 105 |
return "Could not find specific information. Please refine your question."
|
|
|
|
| 64 |
|
| 65 |
def generate_response(user_query, relevant_segment):
|
| 66 |
"""
|
| 67 |
+
Generate a response emphasizing the bot's capability in providing artist reccomendations based on users' moods.
|
| 68 |
"""
|
| 69 |
try:
|
| 70 |
user_message = f"Here's your reccomendations: {relevant_segment}"
|
|
|
|
| 99 |
Process a question, find relevant information, and generate a response.
|
| 100 |
"""
|
| 101 |
if question == "":
|
| 102 |
+
return "Welcome, my name is Harmony! How are you feeling today?"
|
| 103 |
relevant_segment = find_relevant_segment(question, segments)
|
| 104 |
if not relevant_segment:
|
| 105 |
return "Could not find specific information. Please refine your question."
|