BroTeoTM commited on
Commit
c418762
·
verified ·
1 Parent(s): 5f7afae

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -34,7 +34,7 @@ elif second_button:
34
  kt = "2"
35
  path = os.getcwd()
36
 
37
- st.write('Current Path:', path)
38
  if click == 1:
39
  st.write("Quá trình tổng hợp dữ liệu ...")
40
  rolldate = []
@@ -50,11 +50,11 @@ if click == 1:
50
  with open(FILE_TO_SAVE_AS, "wb") as f:
51
  f.write(resp.content) # writing content to file
52
 
53
- if os.path.isfile(FILE_TO_SAVE_AS):
54
- st.write("File exists")
55
- st.write(os.path.getsize(FILE_TO_SAVE_AS))
56
- else:
57
- st.write("Không có file")
58
  fo = open(FILE_TO_SAVE_AS)
59
  i = 1
60
  lines = fo.readlines()
@@ -80,7 +80,9 @@ if click == 1:
80
  #st.write(str(len(rolldate)))
81
  #st.write(str(len(results)))
82
  st.write("Kỳ quay cuối cùng ngày: "+maxdate+" - kết quả: "+str(lastresult))
83
- st.write("Kết thúc tổng hợp dữ liệu\nBắt đầu quá trình dự đoán...")
 
 
84
 
85
  # rs = open("/home/user/app/test.txt","w")
86
  # rs.write("Ca vay thoi")
 
34
  kt = "2"
35
  path = os.getcwd()
36
 
37
+ #st.write('Current Path:', path)
38
  if click == 1:
39
  st.write("Quá trình tổng hợp dữ liệu ...")
40
  rolldate = []
 
50
  with open(FILE_TO_SAVE_AS, "wb") as f:
51
  f.write(resp.content) # writing content to file
52
 
53
+ #if os.path.isfile(FILE_TO_SAVE_AS):
54
+ # st.write("File exists")
55
+ # st.write(os.path.getsize(FILE_TO_SAVE_AS))
56
+ #else:
57
+ # st.write("Không có file")
58
  fo = open(FILE_TO_SAVE_AS)
59
  i = 1
60
  lines = fo.readlines()
 
80
  #st.write(str(len(rolldate)))
81
  #st.write(str(len(results)))
82
  st.write("Kỳ quay cuối cùng ngày: "+maxdate+" - kết quả: "+str(lastresult))
83
+ st.write("Kết thúc tổng hợp dữ liệu")
84
+ st.write("Bắt đầu quá trình dự đoán...")
85
+
86
 
87
  # rs = open("/home/user/app/test.txt","w")
88
  # rs.write("Ca vay thoi")