Spaces:
Runtime error
Runtime error
Commit
·
b3a4464
1
Parent(s):
dd5a7ee
Update screen/screen_scan.py
Browse files- screen/screen_scan.py +12 -1
screen/screen_scan.py
CHANGED
@@ -61,14 +61,25 @@ def screen_scan_main():
|
|
61 |
repo.git_pull()
|
62 |
|
63 |
if str(repo_df["ogrenci_no"][0]) == password:
|
64 |
-
st.write("
|
65 |
|
66 |
exam_code = st.text_input("Sınav Kodu:",key=13,value=10)
|
67 |
|
68 |
exam_code = int(exam_code)
|
69 |
|
70 |
global myIndexs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
|
|
|
72 |
if st.button("Cevap Anahtari Sec",key=51):
|
73 |
image = Image.open(image_file)
|
74 |
image = np.array(image.convert('RGB'))
|
|
|
61 |
repo.git_pull()
|
62 |
|
63 |
if str(repo_df["ogrenci_no"][0]) == password:
|
64 |
+
st.write("Giriş başarılı")
|
65 |
|
66 |
exam_code = st.text_input("Sınav Kodu:",key=13,value=10)
|
67 |
|
68 |
exam_code = int(exam_code)
|
69 |
|
70 |
global myIndexs
|
71 |
+
try:
|
72 |
+
if myIndexs == None:
|
73 |
+
st.write("Cevap Anahtari Yok")
|
74 |
+
|
75 |
+
else:
|
76 |
+
st.write("Cevap Anahtari Secili")
|
77 |
+
|
78 |
+
except NameError:
|
79 |
+
st.write("Cevap Anahtari Yok")
|
80 |
+
|
81 |
|
82 |
+
|
83 |
if st.button("Cevap Anahtari Sec",key=51):
|
84 |
image = Image.open(image_file)
|
85 |
image = np.array(image.convert('RGB'))
|