Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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...
|
| 2392 |
-
"π AI model is loading, your
|
| 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 |
+
|