| #!/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() |