Dattaluri commited on
Commit
17765cd
·
verified ·
1 Parent(s): 687450f

Upload frontend app files

Browse files
https:/huggingface.co/spaces/Dattaluri/Great_Learning/app.py CHANGED
@@ -39,7 +39,7 @@ if st.button("Get Sales Forecast"):
39
 
40
  # Send the input data to the backend API for prediction
41
  try:
42
- response = requests.post(f"{https://huggingface.co/spaces/Dattaluri/Great_Learning/blob/main/app.py}/predict", json=input_data)
43
  response.raise_for_status() # Raise an exception for bad status codes
44
 
45
  prediction = response.json()["prediction"][0]
 
39
 
40
  # Send the input data to the backend API for prediction
41
  try:
42
+ response = requests.post(f"{BACKEND_API_URL}/predict", json=input_data)
43
  response.raise_for_status() # Raise an exception for bad status codes
44
 
45
  prediction = response.json()["prediction"][0]