Spaces:
Sleeping
Sleeping
Download strategy_handler.py from aartemka/pilot-etf-tech: direct link, hf CLI and curl.
- Browser
- Download file 355 Bytes
-
https://huggingface.co/spaces/aartemka/pilot-etf-tech/resolve/main/strategy_handler.py
- Command line
-
hf download hf://spaces/aartemka/pilot-etf-tech/strategy_handler.py
-
curl -L -o strategy_handler.py https://huggingface.co/spaces/aartemka/pilot-etf-tech/resolve/main/strategy_handler.py
355 Bytes
| from prompts import Prompts | |
| from common_functionality import send_openai_request | |
| def get_strategy_info(company_name: str, categories: list) -> dict: | |
| prompt = Prompts.STRATEGY_INFORMATION_PROMPT.format(company_name=company_name, categories=categories) | |
| response = send_openai_request(prompt, temperature=0) | |
| print(response) | |
| return response | |