Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,4 +8,9 @@ app = FastAPI()
|
|
| 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(billsum)}
|
|
|
|
| 8 |
def summarize():
|
| 9 |
# Example: Loading a dataset as part of the API
|
| 10 |
billsum = load_dataset("billsum", split="ca_test")
|
| 11 |
+
|
| 12 |
+
import pandas as pd
|
| 13 |
+
|
| 14 |
+
df = pd.read_csv("my_dataset.csv")
|
| 15 |
+
print(df.head()) # Debugging step
|
| 16 |
return {"Hello": "World!", "dataset_length": len(billsum)}
|