Download src/data/preprocess.py from Ibrahim-Salim1/Finance-Analyst-AI: direct link, hf CLI and curl.
- Browser
- Download file 263 Bytes
-
https://huggingface.co/spaces/Ibrahim-Salim1/Finance-Analyst-AI/resolve/main/src/data/preprocess.py
- Command line
-
hf download hf://spaces/Ibrahim-Salim1/Finance-Analyst-AI/src/data/preprocess.py
-
curl -L -o preprocess.py https://huggingface.co/spaces/Ibrahim-Salim1/Finance-Analyst-AI/resolve/main/src/data/preprocess.py
263 Bytes
| def format_finance(example): | |
| return { | |
| "text": f""" | |
| Instruction: You are a financial analyst. Analyze and explain clearly. | |
| Input: {example.get('question', example.get('input', ''))} | |
| Response: {example.get('answer', example.get('output', ''))} | |
| """ | |
| } |