ArmelRandy commited on
Commit
4a0f178
1 Parent(s): b3d1867

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -42,6 +42,7 @@ def identity(index, split):
42
 
43
  def save(index, language, split, prompt, completion):
44
  buffer = StringIO()
 
45
  timestamp = datetime.datetime.now().strftime("%Y-%m-%dT%H:%M:%S.%f")
46
  file_name = f"prompts_{timestamp}.jsonl"
47
  if len(prompt) != 0 and len(completion) != 0 :
 
42
 
43
  def save(index, language, split, prompt, completion):
44
  buffer = StringIO()
45
+ now = datetime.datetime.now()
46
  timestamp = datetime.datetime.now().strftime("%Y-%m-%dT%H:%M:%S.%f")
47
  file_name = f"prompts_{timestamp}.jsonl"
48
  if len(prompt) != 0 and len(completion) != 0 :