Download examples/quickstart.py from FOUND-AI/found_protocol: direct link, hf CLI and curl.
- Browser
- Download file 1.18 kB
-
https://huggingface.co/FOUND-AI/found_protocol/resolve/424eba3854abcba09dcccd88f0aba15f5433a8ab/examples/quickstart.py
- Command line
-
hf download hf://FOUND-AI/found_protocol@424eba3854abcba09dcccd88f0aba15f5433a8ab/examples/quickstart.py
-
curl -L -o quickstart.py https://huggingface.co/FOUND-AI/found_protocol/resolve/424eba3854abcba09dcccd88f0aba15f5433a8ab/examples/quickstart.py
1.18 kB
| """ | |
| FOUND Protocol Quickstart Example | |
| """ | |
| import os | |
| from found_protocol import FoundProtocolPipeline | |
| def main(): | |
| # Initialize pipeline | |
| api_key = os.environ.get("GEMINI_API_KEY") | |
| if not api_key: | |
| print("Please set GEMINI_API_KEY environment variable") | |
| return | |
| pipeline = FoundProtocolPipeline(api_key=api_key) | |
| # Process a sample video | |
| video_path = "sample_video.mp4" # Replace with your video | |
| print("Processing video with FOUND Protocol...") | |
| result = pipeline.process_video(video_path) | |
| # Display results | |
| print("\n" + "="*60) | |
| print("FOUND-1 (Perceptor) Output:") | |
| print("="*60) | |
| print(result['found1_output']) | |
| print("\n" + "="*60) | |
| print("FOUND-2 (Interpreter) Output:") | |
| print("="*60) | |
| print(result['found2_output']) | |
| print("\n" + "="*60) | |
| print("Training Data Value:") | |
| print("="*60) | |
| print(f"Market Value: {result['market_value']}") | |
| print(f"Consciousness State: {result['training_data']['consciousness_state']['current']}") | |
| print(f"Quality Score: {result['training_data']['training_value']['quality_score']}") | |
| if __name__ == "__main__": | |
| main() | |