Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
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://
|
| 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://ranjithgopalan1789-Sunday-7-19-API/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"]
|