Spaces:
Paused
Paused
Upload app.py
Browse files
app.py
CHANGED
|
@@ -38,20 +38,21 @@ def getTop(plist):
|
|
| 38 |
# Display the customized message
|
| 39 |
#st.write('Customized Message:', user_input)
|
| 40 |
click = 0
|
| 41 |
-
|
| 42 |
-
|
|
|
|
| 43 |
kt = "1"
|
| 44 |
if first_button:
|
| 45 |
click = 1
|
| 46 |
st.html(
|
| 47 |
-
"<p><span style='
|
| 48 |
)
|
| 49 |
kt = "1"
|
| 50 |
elif second_button:
|
| 51 |
click = 1
|
| 52 |
st.write("Oánh lô nhé")
|
| 53 |
st.html(
|
| 54 |
-
"<p><span style='
|
| 55 |
)
|
| 56 |
kt = "2"
|
| 57 |
path = os.getcwd()
|
|
@@ -130,7 +131,7 @@ if click == 1:
|
|
| 130 |
ws.write(vdata)
|
| 131 |
i += 1
|
| 132 |
ws.close()
|
| 133 |
-
st.write("Lọc dữ liệu hoàn thành")
|
| 134 |
else:
|
| 135 |
i = 0
|
| 136 |
ws.write("special\tprize1\tprize2_1\tprize2_2\tprize3_1\tprize3_2\tprize3_3\tprize3_4\tprize3_5\tprize3_6\tprize4_1\tprize4_2\tprize4_3\tprize4_4\tprize5_1\tprize5_2\tprize5_3\tprize5_4\tprize5_5\tprize5_6\tprize6_1\tprize6_2\tprize6_3\tprize7_1\tprize7_2\tprize7_3\tprize7_4\n")
|
|
@@ -143,7 +144,7 @@ if click == 1:
|
|
| 143 |
ws.write(vdata)
|
| 144 |
i += 1
|
| 145 |
ws.close()
|
| 146 |
-
st.write("Lọc dữ liệu hoàn thành")
|
| 147 |
|
| 148 |
data = np.loadtxt(loadrs,delimiter="\t",dtype="int",skiprows=1)
|
| 149 |
#st.write(data)
|
|
|
|
| 38 |
# Display the customized message
|
| 39 |
#st.write('Customized Message:', user_input)
|
| 40 |
click = 0
|
| 41 |
+
st.html("<p><span style='color: red; font-weight: bold'>Lựa chọn môn thể thao muốn chơi hôm nay nào:</span></p>")
|
| 42 |
+
first_button = st.button("Đê huyền đề",type='primary')
|
| 43 |
+
second_button = st.button("Đoán lô",type="secondary")
|
| 44 |
kt = "1"
|
| 45 |
if first_button:
|
| 46 |
click = 1
|
| 47 |
st.html(
|
| 48 |
+
"<p><span style='color: red'>Oánh đề à?</span><br>Thử đoán xem có trúng không nhé?</p>"
|
| 49 |
)
|
| 50 |
kt = "1"
|
| 51 |
elif second_button:
|
| 52 |
click = 1
|
| 53 |
st.write("Oánh lô nhé")
|
| 54 |
st.html(
|
| 55 |
+
"<p><span style='color: red'>Hôm nay chọn chơi lô à?</span><br>Ăn nhớ báo nhé.</p>"
|
| 56 |
)
|
| 57 |
kt = "2"
|
| 58 |
path = os.getcwd()
|
|
|
|
| 131 |
ws.write(vdata)
|
| 132 |
i += 1
|
| 133 |
ws.close()
|
| 134 |
+
#st.write("Lọc dữ liệu hoàn thành")
|
| 135 |
else:
|
| 136 |
i = 0
|
| 137 |
ws.write("special\tprize1\tprize2_1\tprize2_2\tprize3_1\tprize3_2\tprize3_3\tprize3_4\tprize3_5\tprize3_6\tprize4_1\tprize4_2\tprize4_3\tprize4_4\tprize5_1\tprize5_2\tprize5_3\tprize5_4\tprize5_5\tprize5_6\tprize6_1\tprize6_2\tprize6_3\tprize7_1\tprize7_2\tprize7_3\tprize7_4\n")
|
|
|
|
| 144 |
ws.write(vdata)
|
| 145 |
i += 1
|
| 146 |
ws.close()
|
| 147 |
+
#st.write("Lọc dữ liệu hoàn thành")
|
| 148 |
|
| 149 |
data = np.loadtxt(loadrs,delimiter="\t",dtype="int",skiprows=1)
|
| 150 |
#st.write(data)
|