rcook commited on
Commit
df6fdec
·
verified ·
1 Parent(s): 2b21c26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
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)}