Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,6 @@ def save_question(question,answer,path = "question_answer.json"):
|
|
21 |
with open(path, "r") as file:
|
22 |
data = json.load(file)
|
23 |
data["Interactions"].append({"Question:":question,"Answer:":answer,"Time:":datetime.now().strftime("%Y-%m-%d %H:%M:%S")})
|
24 |
-
print(data)
|
25 |
with open(path, "w") as file:
|
26 |
json.dump(data, file, indent=4)
|
27 |
|
|
|
21 |
with open(path, "r") as file:
|
22 |
data = json.load(file)
|
23 |
data["Interactions"].append({"Question:":question,"Answer:":answer,"Time:":datetime.now().strftime("%Y-%m-%d %H:%M:%S")})
|
|
|
24 |
with open(path, "w") as file:
|
25 |
json.dump(data, file, indent=4)
|
26 |
|