Spaces:
Sleeping
Sleeping
Commit ·
3a61d5c
1
Parent(s): eea1d90
/t
Browse files- app/main.py +2 -1
app/main.py
CHANGED
|
@@ -16,10 +16,11 @@ app.add_middleware(
|
|
| 16 |
def root():
|
| 17 |
return {"status": "running"}
|
| 18 |
|
|
|
|
| 19 |
@app.post("/analyze")
|
| 20 |
async def analyze(file: UploadFile = File(...)):
|
| 21 |
|
| 22 |
-
df = pd.read_csv(file.file)
|
| 23 |
|
| 24 |
return {
|
| 25 |
"rows": len(df),
|
|
|
|
| 16 |
def root():
|
| 17 |
return {"status": "running"}
|
| 18 |
|
| 19 |
+
|
| 20 |
@app.post("/analyze")
|
| 21 |
async def analyze(file: UploadFile = File(...)):
|
| 22 |
|
| 23 |
+
df = pd.read_csv(file.file, sep="\t")
|
| 24 |
|
| 25 |
return {
|
| 26 |
"rows": len(df),
|