Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|