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 playlist titles.
|
68 |
"""
|
69 |
try:
|
70 |
user_message = f"Here's a playlist name: {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 "
|
103 |
relevant_segment = find_relevant_segment(question, segments)
|
104 |
if not relevant_segment:
|
105 |
return "Hmmm, that doesn't seem to be in my database. I'm sorry!"
|
@@ -116,7 +116,7 @@ welcome_message = """
|
|
116 |
|
117 |
topics = """
|
118 |
|
119 |
-
Hey, it's Fillira! I'm here to help you create an amazing playlist! Just tell me what genre
|
120 |
|
121 |
"""
|
122 |
|
|
|
64 |
|
65 |
def generate_response(user_query, relevant_segment):
|
66 |
"""
|
67 |
+
Generate a response emphasizing the bot's friendliness and capability in providing playlist titles.
|
68 |
"""
|
69 |
try:
|
70 |
user_message = f"Here's a playlist name: {relevant_segment}"
|
|
|
99 |
Process a question, find relevant information, and generate a response.
|
100 |
"""
|
101 |
if question == "":
|
102 |
+
return "Hello, I'm Fillira!"
|
103 |
relevant_segment = find_relevant_segment(question, segments)
|
104 |
if not relevant_segment:
|
105 |
return "Hmmm, that doesn't seem to be in my database. I'm sorry!"
|
|
|
116 |
|
117 |
topics = """
|
118 |
|
119 |
+
Hey, it's Fillira! I'm here to help you create an amazing playlist title! Just tell me what genre or artist is in the playlist, and I'll do what I do best!
|
120 |
|
121 |
"""
|
122 |
|