MikeMann commited on
Commit
5335699
·
1 Parent(s): 75f4f0f

added EvalDataset Generation

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,4 +1,5 @@
1
  import os
 
2
  #os.environ["CUDA_VISIBLE_DEVICES"] = "" # Disable CUDA initialization
3
  os.environ["allow_dangerous_deserialization"] = "True"
4
  print(os.getcwd())
@@ -571,9 +572,8 @@ class BSIChatbot:
571
  print(data["Lektion"])
572
  #print(data)
573
  i=i+1
574
- with open('/home/user/app/docs/_eval/eval_dataset.json', 'w') as fout:
575
- json.dump(data, fout, ensure_ascii=False)
576
- fout.write("\n")
577
 
578
 
579
  # Print full response as JSON
 
1
  import os
2
+ #ssh login:ssh -i "C:\Users\xy0\.ssh\id_ecdsa" [email protected]
3
  #os.environ["CUDA_VISIBLE_DEVICES"] = "" # Disable CUDA initialization
4
  os.environ["allow_dangerous_deserialization"] = "True"
5
  print(os.getcwd())
 
572
  print(data["Lektion"])
573
  #print(data)
574
  i=i+1
575
+ with open('/home/user/app/docs/_eval/eval_dataset.json', 'a') as fout:
576
+ fout.write(json.dumps(data, ensure_ascii=False) + "\n")
 
577
 
578
 
579
  # Print full response as JSON