Spaces:
Sleeping
Sleeping
File size: 517 Bytes
6a0afb0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import json
import os
# Directory to store interactions and feedback
DATA_DIR = "data"
INTERACTIONS_FILE = os.path.join(DATA_DIR, "interactions.json")
def view_interactions():
if os.path.exists(INTERACTIONS_FILE):
with open(INTERACTIONS_FILE, "r") as file:
interactions = json.load(file)
for interaction in interactions:
print(json.dumps(interaction, indent=4))
else:
print("No interactions found.")
if __name__ == "__main__":
view_interactions() |