|
""" |
|
FOUND Protocol Quickstart Example |
|
""" |
|
|
|
import os |
|
from found_protocol import FoundProtocolPipeline |
|
|
|
def main(): |
|
|
|
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) |
|
|
|
|
|
video_path = "sample_video.mp4" |
|
|
|
print("Processing video with FOUND Protocol...") |
|
result = pipeline.process_video(video_path) |
|
|
|
|
|
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() |
|
|