Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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/*')
|