added EvalDataset Generation
Browse files
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', '
|
| 575 |
-
json.
|
| 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" mikemann-prototypgrundschutzchatbot@ssh.hf.space
|
| 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
|