Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -53,7 +53,7 @@ input_data = {
|
|
| 53 |
if st.button("Predict Sales"):
|
| 54 |
try:
|
| 55 |
# Updated API endpoint
|
| 56 |
-
backend_url = "https
|
| 57 |
endpoint = f"{backend_url}/v1/sales"
|
| 58 |
|
| 59 |
st.info(f"Connecting to: {endpoint}") # Show the endpoint being called
|
|
@@ -101,7 +101,7 @@ uploaded_file = st.file_uploader("Choose a CSV file", type="csv")
|
|
| 101 |
if uploaded_file is not None:
|
| 102 |
if st.button("Predict Batch Sales"):
|
| 103 |
try:
|
| 104 |
-
backend_url = "https://
|
| 105 |
endpoint = f"{backend_url}/v1/salesbatch"
|
| 106 |
|
| 107 |
st.info(f"Connecting to: {endpoint}") # Show the endpoint being called
|
|
|
|
| 53 |
if st.button("Predict Sales"):
|
| 54 |
try:
|
| 55 |
# Updated API endpoint
|
| 56 |
+
backend_url = "https:/DDd009-SuperKartBackend.hf.space" # Corrected URL
|
| 57 |
endpoint = f"{backend_url}/v1/sales"
|
| 58 |
|
| 59 |
st.info(f"Connecting to: {endpoint}") # Show the endpoint being called
|
|
|
|
| 101 |
if uploaded_file is not None:
|
| 102 |
if st.button("Predict Batch Sales"):
|
| 103 |
try:
|
| 104 |
+
backend_url = "https://DD009-SuperKartBackend.hf.space" # Corrected URL
|
| 105 |
endpoint = f"{backend_url}/v1/salesbatch"
|
| 106 |
|
| 107 |
st.info(f"Connecting to: {endpoint}") # Show the endpoint being called
|