Update model.safetensors
Browse files- model.safetensors +26 -6
model.safetensors
CHANGED
|
@@ -1,7 +1,27 @@
|
|
| 1 |
-
import random
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
def predict_next_word(words):
|
| 4 |
-
if random.random() < 0.5:
|
| 5 |
-
return "banana"
|
| 6 |
-
else:
|
| 7 |
-
return "potato"
|
|
|
|
| 1 |
+
import random # For the AI's "randomness"
|
| 2 |
+
|
| 3 |
+
def super_ai_9000(input_text):
|
| 4 |
+
"""The AI's brilliant response generator."""
|
| 5 |
+
responses = [
|
| 6 |
+
"Banana!",
|
| 7 |
+
"Did someone say potato?",
|
| 8 |
+
"Beep boop... processing... error 404: brain not found",
|
| 9 |
+
"Is that a squirrel?"
|
| 10 |
+
]
|
| 11 |
+
return random.choice(responses) # Choose a random response
|
| 12 |
+
|
| 13 |
+
def chat_interface():
|
| 14 |
+
"""The main chat loop."""
|
| 15 |
+
print("Welcome to Super AI 9000! (The one that runs on AA batteries)")
|
| 16 |
+
|
| 17 |
+
while True:
|
| 18 |
+
user_input = input("You: ")
|
| 19 |
+
if user_input.lower() == "exit":
|
| 20 |
+
break # Exit the chat
|
| 21 |
+
|
| 22 |
+
ai_response = super_ai_9000(user_input) # Get the AI's response
|
| 23 |
+
print("Super AI 9000:", ai_response) # Display the response
|
| 24 |
+
|
| 25 |
+
if __name__ == "__main__":
|
| 26 |
+
chat_interface()
|
| 27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|