Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from transformers import AutoTokenizer
|
|
5 |
app = FastAPI()
|
6 |
|
7 |
@app.get("/")
|
8 |
-
def
|
9 |
# Example: Loading a dataset as part of the API
|
10 |
-
|
11 |
return {"Hello": "World!", "dataset_length": len(dataset["train"])}
|
|
|
5 |
app = FastAPI()
|
6 |
|
7 |
@app.get("/")
|
8 |
+
def summarize():
|
9 |
# Example: Loading a dataset as part of the API
|
10 |
+
billsum = load_dataset("billsum", split="ca_test")
|
11 |
return {"Hello": "World!", "dataset_length": len(dataset["train"])}
|