-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathapp.py
More file actions
39 lines (32 loc) · 751 Bytes
/
Copy pathapp.py
File metadata and controls
39 lines (32 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env python3
"""
app.py
======
AutoSetter entry point.
Usage:
python app.py path/to/problem.png
python app.py path/to/problem.pdf --vision-model qwen2.5vl:3b --text-model qwen2.5-coder:7b
Or via module execution:
python -m autosetter path/to/problem.png
Programmatic usage:
from autosetter import generate_from_image
result = generate_from_image("path/to/problem.png")
"""
from __future__ import annotations
import sys
from autosetter.cli import (
AutoSetterError,
AutoSetupError,
PipelineResult,
generate_from_image,
main,
)
__all__ = [
"main",
"generate_from_image",
"PipelineResult",
"AutoSetterError",
"AutoSetupError",
]
if __name__ == "__main__":
sys.exit(main())