Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -46,8 +46,11 @@ input_data = pd.DataFrame([{
|
|
| 46 |
if st.button("Predict"):
|
| 47 |
response = requests.post("https://amitcoolll-ExtraLearnConversionPredictionBackendAPP.hf.space/v1/conversion", json=input_data.to_dict(orient='records')[0]) # Send data to Flask API
|
| 48 |
if response.status_code == 200:
|
|
|
|
|
|
|
| 49 |
prediction = response.json()['Predicted Status']
|
| 50 |
st.success(f"Predicted Status: {prediction}")
|
|
|
|
| 51 |
else:
|
| 52 |
st.error("Error making prediction.")
|
| 53 |
|
|
|
|
| 46 |
if st.button("Predict"):
|
| 47 |
response = requests.post("https://amitcoolll-ExtraLearnConversionPredictionBackendAPP.hf.space/v1/conversion", json=input_data.to_dict(orient='records')[0]) # Send data to Flask API
|
| 48 |
if response.status_code == 200:
|
| 49 |
+
# prediction = response.json()['Predicted Status']
|
| 50 |
+
# prediction = response.json()['Status']
|
| 51 |
prediction = response.json()['Predicted Status']
|
| 52 |
st.success(f"Predicted Status: {prediction}")
|
| 53 |
+
|
| 54 |
else:
|
| 55 |
st.error("Error making prediction.")
|
| 56 |
|