Tamilvelan commited on
Commit
4f57fd2
·
verified ·
1 Parent(s): 3009dc3

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. app.py +2 -1
  2. requirements.txt +1 -0
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import streamlit as st
2
  import pandas as pd
3
  import requests
 
4
 
5
  # Set the title of the Streamlit app
6
  st.title("🛒 SuperKart Sales Total Predictor")
@@ -49,7 +50,7 @@ product_allocated_area_raw = st.number_input("Product Allocated Area (Raw Value)
49
  product_allocated_area_log = float(np.log1p(product_allocated_area_raw)) # Calculate log1p(x)
50
 
51
  # --- Prepare Data Payload ---
52
- import numpy as np # Import numpy here for log1p calculation
53
 
54
  # Convert user input into a dictionary matching the API's expected JSON structure
55
  input_payload = {
 
1
  import streamlit as st
2
  import pandas as pd
3
  import requests
4
+ import numpy as np # Import numpy here for log1p calculation
5
 
6
  # Set the title of the Streamlit app
7
  st.title("🛒 SuperKart Sales Total Predictor")
 
50
  product_allocated_area_log = float(np.log1p(product_allocated_area_raw)) # Calculate log1p(x)
51
 
52
  # --- Prepare Data Payload ---
53
+
54
 
55
  # Convert user input into a dictionary matching the API's expected JSON structure
56
  input_payload = {
requirements.txt CHANGED
@@ -1,3 +1,4 @@
1
  pandas==2.2.2
2
  requests==2.28.1
3
  streamlit==1.43.2
 
 
1
  pandas==2.2.2
2
  requests==2.28.1
3
  streamlit==1.43.2
4
+ numpy