cbg342 commited on
Commit
091104a
1 Parent(s): 75f8b5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,8 +10,8 @@ if 'displayChat' not in st.session_state:
10
  with st.spinner('Setting up plugins...'):
11
  os.system('mkdir files')
12
  thishour = str(datetime.datetime.now().hour)
13
- if os.path.isfile(os.join(thispath, 'timestamp.txt')):
14
- with open(os.join(thispath, 'timestamp.txt')) as f:
15
  stampHour = f.readline().strip('\n')
16
  if thishour != stampHour:
17
  os.system('rm -rf files/*')
 
10
  with st.spinner('Setting up plugins...'):
11
  os.system('mkdir files')
12
  thishour = str(datetime.datetime.now().hour)
13
+ if os.path.isfile(os.path.join(thispath, 'timestamp.txt')):
14
+ with open(os.path.join(thispath, 'timestamp.txt')) as f:
15
  stampHour = f.readline().strip('\n')
16
  if thishour != stampHour:
17
  os.system('rm -rf files/*')