Spaces:
Sleeping
Sleeping
from fastapi import FastAPI | |
from datasets import load_dataset | |
from transformers import AutoTokenizer | |
app = FastAPI() | |
def summarize(): | |
# Example: Loading a dataset as part of the API | |
billsum = load_dataset("billsum", split="ca_test") | |
return {"Hello": "World!", "dataset_length": len(dataset["train"])} | |