Spaces:
Runtime error
Runtime error
File size: 401 Bytes
ce06eb4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | from pydantic import BaseModel, Field
from typing import List, Dict, Any
class FileMetadata(BaseModel):
filename: str
columns: List[str]
dtypes: Dict[str, str]
sample_data: List[Dict[str, Any]]
row_count: int
class FileParser:
def __init__(self, max_rows=1000):
self.max_rows = max_rows
def parse_file(self, uploaded_file):
# TODO: implement
pass |