bambadij commited on
Commit
48333ed
·
verified ·
1 Parent(s): 7abca01
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -139,7 +139,7 @@ async def generate_text(file: UploadFile = File(...)):
139
  # Read the uploaded CSV file
140
  try:
141
  contents = await file.read()
142
- df = pd.read_csv(pd.compat.StringIO(contents.decode('utf-8')))
143
  except Exception as e:
144
  return {"error": f"Error reading CSV file: {str(e)}"}
145
 
 
139
  # Read the uploaded CSV file
140
  try:
141
  contents = await file.read()
142
+ df = pd.read_csv(StringIO(contents.decode('utf-8')))
143
  except Exception as e:
144
  return {"error": f"Error reading CSV file: {str(e)}"}
145