File size: 2,597 Bytes
e4fe207
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# main.py
import streamlit as st

st.set_page_config(
    page_title="Faculty Evaluation",
    layout="centered"
)


# from app5_selectbox import load_llama2  # load_llama2() or initialized
# load_llama2.load()


from app5_selectbox import academic_list, class_tbl, instructor, program, student, subject, subj_inst, evaluation
import app5
from app5_selectbox.database_con import cursor, db_connection


# db_connection.reconnect()

# Streamlit app title
# st.title("University Evaluation App")

app5.app5()




# Close the database connection
# db_connection.close()
# db_connection.disconnect()




#################################### 2/4/24

# # main.py
# import streamlit as st
# from app5_selectbox import academic_list, class_tbl, instructor, program, student, subject, subj_inst, evaluation
# import app5
# from app5_selectbox.database_con import cursor, db_connection

# # db_connection.reconnect()

# # Streamlit app title
# st.title("University Evaluation App")

# # Create a Streamlit sidebar to select the table for insertion
# table_name = st.sidebar.selectbox("Select Table", ("academic_list", "class", "instructor", "program", "student", "subject", "subj_inst", "evaluation", "app5"))

# if table_name == "academic_list":
#     # Include academic_list-specific code from academic_list.py
#     academic_list.academic_list(table_name)
#     # pass
# elif table_name == "class":
#     # Include class-specific code from class.py
#     class_tbl.class_tbl(table_name)
#     # pass
# elif table_name == "instructor":
#     # Include instructor-specific code from instructor.py
#     instructor.instructor(table_name)
#     # pass
# elif table_name == "program":
#     # Include program-specific code from program.py
#     program.program(table_name)
#     # pass
# elif table_name == "student":
#     # Include student-specific code from student.py
#     student.student(table_name)
#     # pass
# elif table_name == "subject":
#     # Include subject-specific code from subject.py
#     subject.subject(table_name)
#     # pass
# elif table_name == "subj_inst":
#     # Include subj_inst-specific code from subj_inst.py
#     subj_inst.subj_inst(table_name)
#     # pass
# elif table_name == "evaluation":
#     # Include table_name-specific code from table_name.py
#     evaluation.evaluation()
#     # pass
# elif table_name == "app5":
#     # Include table_name-specific code from table_name.py
#     app5.app5()
#     # pass
# else:
#     st.error("Select a valid table from the sidebar.")

# # Close the database connection
# # db_connection.close()
# # db_connection.disconnect()