Yash0204 commited on
Commit
3a2794b
·
verified ·
1 Parent(s): 787d5fc

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -81,7 +81,6 @@ if uploaded_file is not None:
81
  api_batch_url = "https://Yash0204-SuperKart-Backend.hf.space/v1/forecastbatch"
82
 
83
  try:
84
- files = {"file": uploaded_file.getvalue()}
85
  response = requests.post(api_batch_url, files={"file": uploaded_file})
86
 
87
  if response.status_code == 200:
@@ -99,3 +98,4 @@ if uploaded_file is not None:
99
 
100
  st.info("ℹ️ Please ensure your backend API supports `/v1/forecast` and `/v1/forecastbatch` endpoints.")
101
 
 
 
81
  api_batch_url = "https://Yash0204-SuperKart-Backend.hf.space/v1/forecastbatch"
82
 
83
  try:
 
84
  response = requests.post(api_batch_url, files={"file": uploaded_file})
85
 
86
  if response.status_code == 200:
 
98
 
99
  st.info("ℹ️ Please ensure your backend API supports `/v1/forecast` and `/v1/forecastbatch` endpoints.")
100
 
101
+