Spaces:
Running
Running
| import sys | |
| import os | |
| sys.path.insert(0, os.path.abspath(os.path.dirname(__file__))) | |
| from agents.auditor import audit_final_document | |
| def test(): | |
| try: | |
| content = "To jest testowy wniosek. Koszty to 1000 PLN. Innowacja jest super." | |
| result = audit_final_document("test_proj_123", "FENG", content) | |
| print("Success:") | |
| print(result.model_dump()) | |
| except Exception as e: | |
| print(f"Error: {e}") | |
| import traceback | |
| traceback.print_exc() | |
| if __name__ == "__main__": | |
| test() | |