Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -26,13 +26,12 @@ def make_call(phone_number):
|
|
26 |
},
|
27 |
}
|
28 |
|
29 |
-
response = requests.post(
|
30 |
-
'https://api.vapi.ai/call/phone', headers=headers, json=data)
|
31 |
|
32 |
if response.status_code == 201:
|
33 |
-
|
34 |
else:
|
35 |
-
|
36 |
|
37 |
def main():
|
38 |
st.title('Outbound Calls Using VAPI.AI')
|
|
|
26 |
},
|
27 |
}
|
28 |
|
29 |
+
response = requests.post('https://api.vapi.ai/call/phone', headers=headers, json=data)
|
|
|
30 |
|
31 |
if response.status_code == 201:
|
32 |
+
st.write(f'Call to {phone_number} created successfully')
|
33 |
else:
|
34 |
+
st.write(f'Failed to create call to {phone_number}')
|
35 |
|
36 |
def main():
|
37 |
st.title('Outbound Calls Using VAPI.AI')
|