File size: 800 Bytes
f74f3c2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
#!/usr/bin/env python3
from model import AcoliModel
def interactive_test():
print("Loading Acoli model...")
model = AcoliModel("./acoli-model")
print("\n๐ค Acoli AI Model Ready!")
print("Type Acoli text to test the model (type 'quit' to exit)")
print("-" * 50)
while True:
user_input = input("\n๐ Enter Acoli text: ").strip()
if user_input.lower() in ['quit', 'exit', 'q']:
print("Goodbye! ๐")
break
if not user_input:
continue
try:
prediction = model.predict(user_input)
print(f"๐ฏ Prediction: {prediction}")
except Exception as e:
print(f"โ Error: {e}")
if __name__ == "__main__":
interactive_test() |