admattew commited on
Commit
a6796c6
·
verified ·
1 Parent(s): 1999fc1

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. app.py +2 -3
  2. requirements.txt +2 -2
app.py CHANGED
@@ -40,7 +40,6 @@ def predict_nozzle():
40
 
41
  }
42
 
43
-
44
  # Convert the extracted data into a DataFrame
45
  input_data = pd.DataFrame([sample])
46
 
@@ -54,11 +53,11 @@ def predict_nozzle():
54
  # Define an endpoint for batch prediction (POST request)
55
  @nozzleselect_api.post('/v1/predictbatch')
56
  def predict_nozzle_batch():
57
-
58
  This function handles POST requests to the '/v1/predictbatch' endpoint.
59
  It expects a CSV file containing property details for multiple properties
60
  and returns the predicted rental prices as a dictionary in the JSON response.
61
-
62
  # Get the uploaded CSV file from the request
63
  file = request.files['file']
64
 
 
40
 
41
  }
42
 
 
43
  # Convert the extracted data into a DataFrame
44
  input_data = pd.DataFrame([sample])
45
 
 
53
  # Define an endpoint for batch prediction (POST request)
54
  @nozzleselect_api.post('/v1/predictbatch')
55
  def predict_nozzle_batch():
56
+
57
  This function handles POST requests to the '/v1/predictbatch' endpoint.
58
  It expects a CSV file containing property details for multiple properties
59
  and returns the predicted rental prices as a dictionary in the JSON response.
60
+
61
  # Get the uploaded CSV file from the request
62
  file = request.files['file']
63
 
requirements.txt CHANGED
@@ -4,12 +4,12 @@ scikit-learn==1.6.1
4
  seaborn==0.13.2
5
  joblib==1.4.2
6
  xgboost==2.1.4
7
- joblib==1.4.2
8
  Werkzeug==2.2.2
9
  flask==2.2.2
10
  gunicorn==20.1.0
11
  requests==2.32.3
12
  uvicorn[standard]
13
- streamlit==1.43.2
14
  huggingface_hub==0.20.3
15
  hf_xet
 
4
  seaborn==0.13.2
5
  joblib==1.4.2
6
  xgboost==2.1.4
7
+ joblib==1.5.2
8
  Werkzeug==2.2.2
9
  flask==2.2.2
10
  gunicorn==20.1.0
11
  requests==2.32.3
12
  uvicorn[standard]
13
+ streamlit==1.49.1
14
  huggingface_hub==0.20.3
15
  hf_xet