Spaces:
Sleeping
Sleeping
Download src/utils/analysis_metadata.py from derrickliu/stock_analysis: direct link, hf CLI and curl.
- Browser
- Download file 271 Bytes
-
https://huggingface.co/spaces/derrickliu/stock_analysis/resolve/main/src/utils/analysis_metadata.py
- Command line
-
hf download hf://spaces/derrickliu/stock_analysis/src/utils/analysis_metadata.py
-
curl -L -o analysis_metadata.py https://huggingface.co/spaces/derrickliu/stock_analysis/resolve/main/src/utils/analysis_metadata.py
271 Bytes
| # -*- coding: utf-8 -*- | |
| """ | |
| Shared metadata constants for analysis requests. | |
| """ | |
| from __future__ import annotations | |
| SELECTION_SOURCES: tuple[str, ...] = ("manual", "autocomplete", "import", "image") | |
| SELECTION_SOURCE_PATTERN = "^(" + "|".join(SELECTION_SOURCES) + ")$" | |