Spaces:
Sleeping
Sleeping
Delete app.py
Browse files
app.py
DELETED
@@ -1,25 +0,0 @@
|
|
1 |
-
from fastapi import FastAPI
|
2 |
-
|
3 |
-
app = FastAPI()
|
4 |
-
|
5 |
-
@app.get("/")
|
6 |
-
|
7 |
-
#pip install transformers datasets evaluate rouge_score
|
8 |
-
|
9 |
-
from datasets import load_dataset
|
10 |
-
|
11 |
-
billsum = load_dataset("billsum", split="ca_test")
|
12 |
-
|
13 |
-
billsum
|
14 |
-
|
15 |
-
|
16 |
-
from fastapi import FastAPI
|
17 |
-
from datasets import load_dataset
|
18 |
-
|
19 |
-
app = FastAPI()
|
20 |
-
|
21 |
-
@app.get("/")
|
22 |
-
def greet_json():
|
23 |
-
# Example: Loading a dataset as part of the API
|
24 |
-
dataset = load_dataset("squad")
|
25 |
-
return {"Hello": "World!", "dataset_length": len(dataset["train"])}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|