syedmudassir16 commited on
Commit
fb18002
·
verified ·
1 Parent(s): 4ca8a7b

updated return msg

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- output=mood.capitalize()
 
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;'>How are you feeling today?</span>",
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()