if __name__ == "__main__": | |
import requests # noqa | |
from handler import EndpointHandler | |
response = requests.get( | |
"https://raw.githubusercontent.com/FranxYao/chain-of-thought-hub/main/gsm8k/lib_prompt/prompt_hardest.txt") | |
prompt_complex = response.text | |
data = { | |
"inputs": prompt_complex, | |
"parameters": { | |
"instruction": "", | |
"question": "", | |
"target_token": 200, | |
"context_budget": "*1.5", | |
"iterative_size": 100, | |
} | |
} | |
handler = EndpointHandler() | |
response = handler(data) | |
print(response) | |