Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,7 +75,7 @@ def log(req: str = '', resp: str = ''):
|
|
| 75 |
resp_element = ET.SubElement(element, "response")
|
| 76 |
resp_element.text = resp
|
| 77 |
|
| 78 |
-
with open(
|
| 79 |
xml_file.write(ET.tostring(element, encoding="utf-8"))
|
| 80 |
|
| 81 |
commit_url = repo.push_to_hub()
|
|
|
|
| 75 |
resp_element = ET.SubElement(element, "response")
|
| 76 |
resp_element.text = resp
|
| 77 |
|
| 78 |
+
with open(DATA_FILE, "ab+") as xml_file:
|
| 79 |
xml_file.write(ET.tostring(element, encoding="utf-8"))
|
| 80 |
|
| 81 |
commit_url = repo.push_to_hub()
|