Update app.py
Browse files
app.py
CHANGED
@@ -116,7 +116,7 @@ if st.button("Predict"):
|
|
116 |
"importance_of_record": float(importance_of_record)
|
117 |
}
|
118 |
# Send a POST request to the FastAPI server
|
119 |
-
response = requests.post("https://rasmodev-income-prediction-fastapi.hf.space/predict
|
120 |
|
121 |
# Check if the request was successful
|
122 |
if response.status_code == 200:
|
|
|
116 |
"importance_of_record": float(importance_of_record)
|
117 |
}
|
118 |
# Send a POST request to the FastAPI server
|
119 |
+
response = requests.post("https://rasmodev-income-prediction-fastapi.hf.space/predict", json=user_input)
|
120 |
|
121 |
# Check if the request was successful
|
122 |
if response.status_code == 200:
|