Spaces:
Sleeping
Sleeping
Nils Durner
commited on
Commit
·
142adef
1
Parent(s):
7433885
discard history
Browse files
app.py
CHANGED
|
@@ -203,6 +203,7 @@ def import_history(history, file):
|
|
| 203 |
content = content.decode('utf-8', 'replace')
|
| 204 |
else:
|
| 205 |
content = str(content)
|
|
|
|
| 206 |
|
| 207 |
# Deserialize the JSON content
|
| 208 |
import_data = json.loads(content)
|
|
|
|
| 203 |
content = content.decode('utf-8', 'replace')
|
| 204 |
else:
|
| 205 |
content = str(content)
|
| 206 |
+
os.remove(file.name)
|
| 207 |
|
| 208 |
# Deserialize the JSON content
|
| 209 |
import_data = json.loads(content)
|