eaglelandsonce
commited on
Commit
•
7920808
1
Parent(s):
fb233c5
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import requests
|
2 |
+
|
3 |
+
# Variables
|
4 |
+
BASE_URL = "https://api.twelvelabs.io/v1.2"
|
5 |
+
api_key = "tlk_3CPMVGM0ZPTKNT2TKQ3Y62TA7ZY9"
|
6 |
+
data = {
|
7 |
+
"video_id": "6636cf7fd1cd5a287c957cf5",
|
8 |
+
"type": "summary",
|
9 |
+
"prompt": "list the top 4 job interview mistakes and how to improve"
|
10 |
+
}
|
11 |
+
|
12 |
+
# Send request
|
13 |
+
response = requests.post(f"{BASE_URL}/summarize", json=data, headers={"x-api-key": api_key})
|