Spaces:
Sleeping
Sleeping
Adding log
Browse files
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(
|