-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
44 lines (35 loc) · 1.16 KB
/
main.py
File metadata and controls
44 lines (35 loc) · 1.16 KB
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
40
41
42
43
44
#!/usr/bin/env python3
"""会議文字起こしツール - CLIエントリーポイント"""
from app.cli import get_menu_choice, run_existing_audio_workflow, run_full_workflow, show_menu
from app.utils import ensure_data_dirs, print_error, print_info
def main() -> None:
"""メイン関数"""
# データディレクトリを確保
ensure_data_dirs()
print()
print("=" * 50)
print(" 会議文字起こしツール v0.1.0")
print(" ローカルLLMによる要約自動生成")
print("=" * 50)
while True:
try:
show_menu()
choice = get_menu_choice()
if choice == 1:
run_full_workflow()
elif choice == 2:
run_existing_audio_workflow()
elif choice == 3:
print()
print_info("終了します")
print()
break
except KeyboardInterrupt:
print("\n")
print_info("中断されました")
continue
except Exception as e:
print_error(f"予期しないエラー: {e}")
continue
if __name__ == "__main__":
main()