Spaces:
Sleeping
Sleeping
Delete collaboration.py
Browse files- collaboration.py +0 -17
collaboration.py
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
from datasets import Dataset
|
| 2 |
-
from typing import Dict, List
|
| 3 |
-
|
| 4 |
-
_COLLAB: List[Dict] = []
|
| 5 |
-
|
| 6 |
-
def add_collaboration_note(document: str, note: str) -> Dict:
|
| 7 |
-
record = {
|
| 8 |
-
"document": document,
|
| 9 |
-
"note": note
|
| 10 |
-
}
|
| 11 |
-
_COLLAB.append(record)
|
| 12 |
-
return record
|
| 13 |
-
|
| 14 |
-
def get_collaboration_dataset() -> Dataset:
|
| 15 |
-
if not _COLLAB:
|
| 16 |
-
return Dataset.from_dict({"document": [], "note": []})
|
| 17 |
-
return Dataset.from_list(_COLLAB)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|