awacke1 commited on
Commit
f2200d9
·
1 Parent(s): bbb5c60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -36,7 +36,9 @@ def SaveResult(text, outputfileName):
36
  def store_message(name: str, message: str, outputfileName: str):
37
  basedir = os.path.dirname(__file__)
38
  savePath = outputfileName
39
-
 
 
40
  file_exists = exists(savePath)
41
  if (file_exists==False):
42
  with open(outputfileName, "w") as f: #write
 
36
  def store_message(name: str, message: str, outputfileName: str):
37
  basedir = os.path.dirname(__file__)
38
  savePath = outputfileName
39
+
40
+ # if file doesnt exist, create it with labels
41
+ from os.path import exists
42
  file_exists = exists(savePath)
43
  if (file_exists==False):
44
  with open(outputfileName, "w") as f: #write