BroTeoTM commited on
Commit
34f9449
·
verified ·
1 Parent(s): fe22db5

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -225,8 +225,14 @@ if click == 1:
225
  idx = randList.index(rand)
226
  randCount[idx][1] = randCount[idx][1]+1 # cộng thêm 1 lượt vào randCount
227
 
 
 
 
 
 
 
228
  zz += 1
229
- print("Xong randCount")
230
  tmp = 0
231
  for z in randCount:
232
  tmp = int(z[1])
 
225
  idx = randList.index(rand)
226
  randCount[idx][1] = randCount[idx][1]+1 # cộng thêm 1 lượt vào randCount
227
 
228
+ run_percentage = round(zz/runiter,2)
229
+ if run_percentage < 1.0:
230
+ st.progress(run_percentage,text="Chờ tí, đang chạy dự đoán rồi nhá, đừng nóng ruột. Muốn nhanh phải từ từ")
231
+ else:
232
+ st.progress(run_percentage,text="Xong rồi đấy, chờ tí, có kết quả ngay đây.")
233
+
234
  zz += 1
235
+ #print("Xong randCount")
236
  tmp = 0
237
  for z in randCount:
238
  tmp = int(z[1])