muhammadnasar commited on
Commit
45d5936
·
verified ·
1 Parent(s): 77a02e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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
- return f'Call to {phone_number} created successfully'
34
  else:
35
- return f'Failed to create call to {phone_number}'
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')