Spaces:
Runtime error
Runtime error
Commit
·
c6f65d9
1
Parent(s):
ab3f8d4
save
Browse files
__pycache__/data_func.cpython-310.pyc
CHANGED
Binary files a/__pycache__/data_func.cpython-310.pyc and b/__pycache__/data_func.cpython-310.pyc differ
|
|
__pycache__/functions.cpython-310.pyc
CHANGED
Binary files a/__pycache__/functions.cpython-310.pyc and b/__pycache__/functions.cpython-310.pyc differ
|
|
__pycache__/optic1.cpython-310.pyc
CHANGED
Binary files a/__pycache__/optic1.cpython-310.pyc and b/__pycache__/optic1.cpython-310.pyc differ
|
|
__pycache__/reader.cpython-310.pyc
CHANGED
Binary files a/__pycache__/reader.cpython-310.pyc and b/__pycache__/reader.cpython-310.pyc differ
|
|
data
CHANGED
@@ -1 +1 @@
|
|
1 |
-
Subproject commit
|
|
|
1 |
+
Subproject commit 4cde9e2675d9a91b0dc66510a8978808d267cfb1
|
screen/__pycache__/screen_scan.cpython-310.pyc
CHANGED
Binary files a/screen/__pycache__/screen_scan.cpython-310.pyc and b/screen/__pycache__/screen_scan.cpython-310.pyc differ
|
|
screen/screen_scan.py
CHANGED
@@ -44,7 +44,7 @@ def convert_df_to_csv(df):
|
|
44 |
|
45 |
def screen_scan_main():
|
46 |
teacher_code = st.text_input("Ogretmen kodu:",key=12)
|
47 |
-
password = st.text_input("
|
48 |
|
49 |
teacher_code = str(teacher_code)
|
50 |
password = str(password)
|
@@ -78,17 +78,38 @@ def screen_scan_main():
|
|
78 |
except NameError:
|
79 |
st.write("Cevap Anahtari Yok")
|
80 |
|
|
|
|
|
|
|
81 |
|
82 |
-
|
83 |
if st.button("Cevap Anahtari Sec",key=51):
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
col3,col4 = st.columns(2)
|
93 |
with col3:
|
94 |
|
@@ -97,9 +118,9 @@ def screen_scan_main():
|
|
97 |
image = Image.open(image_file)
|
98 |
image = np.array(image.convert('RGB'))
|
99 |
#(ans_txt,pathImage, save_images= True)
|
100 |
-
grading, wrong_ans, student_idFix, resim_list,empty_ans =optic1.optic1(ans_txt1=
|
101 |
-
ans_txt2=
|
102 |
-
ans_txt3=
|
103 |
pathImage=image,save_images=False)
|
104 |
|
105 |
#image_show(resim_list)
|
|
|
44 |
|
45 |
def screen_scan_main():
|
46 |
teacher_code = st.text_input("Ogretmen kodu:",key=12)
|
47 |
+
password = st.text_input("Şifre:",key=17,type="password")
|
48 |
|
49 |
teacher_code = str(teacher_code)
|
50 |
password = str(password)
|
|
|
78 |
except NameError:
|
79 |
st.write("Cevap Anahtari Yok")
|
80 |
|
81 |
+
answer_code = st.radio(
|
82 |
+
"Cevap Anahtari Kodu",
|
83 |
+
('1', '2', '3',"4","5"))
|
84 |
|
|
|
85 |
if st.button("Cevap Anahtari Sec",key=51):
|
86 |
+
global cevap1_list
|
87 |
+
global cevap2_list
|
88 |
+
global cevap3_list
|
89 |
+
cevap1_list = []
|
90 |
+
cevap2_list = []
|
91 |
+
cevap3_list = []
|
92 |
+
|
93 |
+
answer_code = int(answer_code)
|
94 |
+
repo_df_filt = repo_df[repo_df['ogrenci_no'] == answer_code]
|
95 |
+
cevap1= repo_df_filt["yanlis_sorulari1"]
|
96 |
+
cevap2= repo_df_filt["yanlis_sorulari2"]
|
97 |
+
cevap3= repo_df_filt["yanlis_sorulari3"]
|
98 |
+
|
99 |
+
|
100 |
+
for veri in cevap1:
|
101 |
+
parcalar = veri.split(",") # Veriyi "," ile ayırın
|
102 |
+
parcalar_int = [int(parca) for parca in parcalar] # Parçaları integer'a dönüştürün
|
103 |
+
cevap1_list.extend(parcalar_int) # Parçaları veri_listesi'ne ekleyin
|
104 |
+
for veri in cevap2:
|
105 |
+
parcalar = veri.split(",") # Veriyi "," ile ayırın
|
106 |
+
parcalar_int = [int(parca) for parca in parcalar] # Parçaları integer'a dönüştürün
|
107 |
+
cevap2_list.extend(parcalar_int) # Parçaları veri_listesi'ne ekleyin
|
108 |
+
for veri in cevap3:
|
109 |
+
parcalar = veri.split(",") # Veriyi "," ile ayırın
|
110 |
+
parcalar_int = [int(parca) for parca in parcalar] # Parçaları integer'a dönüştürün
|
111 |
+
cevap3_list.extend(parcalar_int) # Parçaları veri_listesi'ne ekleyin
|
112 |
+
|
113 |
col3,col4 = st.columns(2)
|
114 |
with col3:
|
115 |
|
|
|
118 |
image = Image.open(image_file)
|
119 |
image = np.array(image.convert('RGB'))
|
120 |
#(ans_txt,pathImage, save_images= True)
|
121 |
+
grading, wrong_ans, student_idFix, resim_list,empty_ans =optic1.optic1(ans_txt1=cevap1_list,
|
122 |
+
ans_txt2=cevap2_list,
|
123 |
+
ans_txt3=cevap3_list,
|
124 |
pathImage=image,save_images=False)
|
125 |
|
126 |
#image_show(resim_list)
|