skyvera commited on
Commit
949b382
·
verified ·
1 Parent(s): 89b7458

Adding log

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -2,6 +2,8 @@ import gradio as gr
2
  import requests
3
 
4
  def make_api_call(authorization_key, prompt, phone_number):
 
 
5
  headers = {
6
  'Authorization': authorization_key
7
  }
@@ -32,6 +34,7 @@ def make_api_call(authorization_key, prompt, phone_number):
32
  }
33
 
34
  response = requests.post('https://api.bland.ai/v1/calls', json=data, headers=headers)
 
35
  return response.json()
36
 
37
  interface = gr.Interface(
 
2
  import requests
3
 
4
  def make_api_call(authorization_key, prompt, phone_number):
5
+ print(f"Making API call with prompt: {prompt} and phone number: {phone_number}")
6
+
7
  headers = {
8
  'Authorization': authorization_key
9
  }
 
34
  }
35
 
36
  response = requests.post('https://api.bland.ai/v1/calls', json=data, headers=headers)
37
+ print(f"API call response: {response.json()}")
38
  return response.json()
39
 
40
  interface = gr.Interface(