cbg342 commited on
Commit
a70d6e9
1 Parent(s): 1c1a76e

Update app.py

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