Spaces:
Running
Running
Update document_generator.py
Browse files- document_generator.py +3 -0
document_generator.py
CHANGED
|
@@ -527,6 +527,9 @@ from uuid import uuid4
|
|
| 527 |
import csv
|
| 528 |
from io import StringIO
|
| 529 |
|
|
|
|
|
|
|
|
|
|
| 530 |
def create_csv_response(observations: List[Dict]) -> StreamingResponse:
|
| 531 |
def iter_csv(data):
|
| 532 |
output = StringIO()
|
|
|
|
| 527 |
import csv
|
| 528 |
from io import StringIO
|
| 529 |
|
| 530 |
+
class ObservationResponse(BaseModel):
|
| 531 |
+
observations: List[Dict]
|
| 532 |
+
|
| 533 |
def create_csv_response(observations: List[Dict]) -> StreamingResponse:
|
| 534 |
def iter_csv(data):
|
| 535 |
output = StringIO()
|