updated return msg
Browse files
app.py
CHANGED
@@ -218,7 +218,8 @@ def generate(
|
|
218 |
# Print the chatbot's response
|
219 |
if is_classified:
|
220 |
print("Chatbot:", mood.capitalize())
|
221 |
-
|
|
|
222 |
return output
|
223 |
# yield output
|
224 |
return output
|
@@ -230,7 +231,7 @@ demo = gr.ChatInterface(fn=generate,
|
|
230 |
retry_btn=None,
|
231 |
undo_btn=None,
|
232 |
clear_btn=None,
|
233 |
-
description="<span style='font-size: larger; font-weight: bold;'>
|
234 |
)
|
235 |
|
236 |
demo.queue().launch()
|
|
|
218 |
# Print the chatbot's response
|
219 |
if is_classified:
|
220 |
print("Chatbot:", mood.capitalize())
|
221 |
+
playlist_message = f"Playing {mood.capitalize()} playlist for you!"
|
222 |
+
output=playlist_message
|
223 |
return output
|
224 |
# yield output
|
225 |
return output
|
|
|
231 |
retry_btn=None,
|
232 |
undo_btn=None,
|
233 |
clear_btn=None,
|
234 |
+
description="<span style='font-size: larger; font-weight: bold;'>Hi! I'm a music recommender app. What kind of music do you want to listen to, or how are you feeling today?</span>",
|
235 |
)
|
236 |
|
237 |
demo.queue().launch()
|