-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerate_report.sh
More file actions
67 lines (64 loc) · 1.92 KB
/
generate_report.sh
File metadata and controls
67 lines (64 loc) · 1.92 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
# Check if Python is installed and available in PATH
if ! command -v python &>/dev/null; then
echo "Python is not installed or not found in PATH. Please install Python."
exit 1
fi
# Function to display a menu
function show_menu() {
echo "=============================="
echo "Select a model for report generation"
echo "=============================="
echo "1) Vision Model"
echo "2) Forecasting Model"
echo "3) Chat2PDF Model"
echo "4) Grammar Model"
echo "5) OCR Model"
echo "6) Translator Model"
echo "q) Quit"
echo "=============================="
read -p "Enter your choice (1-6 or q to quit): " choice
}
# Loop to show menu and process user selection
while true; do
show_menu
case $choice in
1)
echo "You selected the Vision Model. Generating report..."
python generate_report.py vision
break
;;
2)
echo "You selected the Forecasting Model. Generating report..."
python generate_report.py forecasting
break
;;
3)
echo "You selected the Chat2PDF Model. Generating report..."
python generate_report.py chat2pdf
break
;;
4)
echo "You selected the Grammar Model. Generating report..."
python generate_report.py grammar
break
;;
5)
echo "You selected the OCR Model. Generating report..."
python generate_report.py ocr
break
;;
6)
echo "You selected the Translator Model. Generating report..."
python generate_report.py translator
break
;;
q)
echo "Exiting. Goodbye!"
exit 0
;;
*)
echo "Invalid selection. Please enter a number between 1 and 6, or 'q' to quit."
;;
esac
done