File size: 371 Bytes
aa7758f
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env python3
"""Minimal client example for videos on a shared filesystem."""

from qprefer_reward.client import QPreferHTTPClient

client = QPreferHTTPClient("http://127.0.0.1:18080", api_key="change-me")
scores = client.score_paths(
    videos=["/shared/rollouts/example.mp4"],
    prompts=["A red fox runs through a snowy forest."],
)
print(scores.as_dict())