Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ lead_data = {
|
|
| 38 |
|
| 39 |
|
| 40 |
if st.button("Predict", type='primary'):
|
| 41 |
-
response = requests.post("https://HarishMaths-Learn-Model-API.hf.space/v1/predict", json=
|
| 42 |
if response.status_code == 200:
|
| 43 |
result = response.json()
|
| 44 |
predicted_value = result["Lead"]
|
|
|
|
| 38 |
|
| 39 |
|
| 40 |
if st.button("Predict", type='primary'):
|
| 41 |
+
response = requests.post("https://HarishMaths-Learn-Model-API.hf.space/v1/predict", json=lead_data) # Replace <user_name> and <space_name>
|
| 42 |
if response.status_code == 200:
|
| 43 |
result = response.json()
|
| 44 |
predicted_value = result["Lead"]
|