MainiSandeep1987 commited on
Commit
77cf765
·
verified ·
1 Parent(s): 0edfce7

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -58,8 +58,8 @@ if file is not None:
58
  # "Authorization": "Bearer YOUR_API_KEY", # Replace with actual API key if needed
59
  "Content-Type": "multipart/form-data"
60
  }
61
- file_data = {"file": ("batch.csv", file.getvalue(), "text/csv")} # Properly format file
62
-
63
  response = requests.post(
64
  "https://MainiSandeep1987-BackEndFlaskAPITelecomChurnPrediction.hf.space/v1/customerbatch",
65
  files=file_data,
 
58
  # "Authorization": "Bearer YOUR_API_KEY", # Replace with actual API key if needed
59
  "Content-Type": "multipart/form-data"
60
  }
61
+ file_data = {"file": ("batch.csv", file.getvalue(), "text/csv")
62
+ }
63
  response = requests.post(
64
  "https://MainiSandeep1987-BackEndFlaskAPITelecomChurnPrediction.hf.space/v1/customerbatch",
65
  files=file_data,