shivay00001 commited on
Commit
76efb3a
Β·
verified Β·
1 Parent(s): 00e74ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -2387,12 +2387,16 @@ if __name__ == "__main__":
2387
 
2388
  def simple_chat(message):
2389
  """Enhanced fallback function"""
 
 
 
2390
  responses = [
2391
- "πŸ€– Cosmic AI is starting up... Please wait!",
2392
- "πŸ”„ AI model is loading, your patience is appreciated!",
2393
- "⏳ System initialization in progress...",
2394
- "🌟 Getting ready to chat with you!"
2395
  ]
2396
  import random
2397
  return random.choice(responses)
2398
 
 
 
2387
 
2388
  def simple_chat(message):
2389
  """Enhanced fallback function"""
2390
+ if not message.strip():
2391
+ return "Please enter a message to start chatting!"
2392
+
2393
  responses = [
2394
+ f"πŸ€– Cosmic AI is starting up... Your message '{message}' received!",
2395
+ f"πŸ”„ AI model is loading, processing your message: '{message}'",
2396
+ f"⏳ System initialization in progress... Message: '{message}' noted!",
2397
+ f"🌟 Getting ready to chat with you about: '{message}'"
2398
  ]
2399
  import random
2400
  return random.choice(responses)
2401
 
2402
+