Update app.py
Browse files
app.py
CHANGED
@@ -3,12 +3,17 @@ import requests
|
|
3 |
|
4 |
url = "https://api.prodia.com/v1/job"
|
5 |
|
|
|
6 |
headers = {
|
7 |
"accept": "application/json",
|
8 |
"content-type": "application/json",
|
9 |
"X-Prodia-Key": "69e66898-010d-4cd1-9e22-090f73ad007b"
|
10 |
}
|
11 |
|
|
|
|
|
|
|
|
|
12 |
response = requests.post(url, headers=headers)
|
13 |
|
14 |
print(response.text)
|
|
|
3 |
|
4 |
url = "https://api.prodia.com/v1/job"
|
5 |
|
6 |
+
payload = { "model": "timeless-1.0.ckpt [7c4971d4]" }
|
7 |
headers = {
|
8 |
"accept": "application/json",
|
9 |
"content-type": "application/json",
|
10 |
"X-Prodia-Key": "69e66898-010d-4cd1-9e22-090f73ad007b"
|
11 |
}
|
12 |
|
13 |
+
response = requests.post(url, json=payload, headers=headers)
|
14 |
+
|
15 |
+
print(response.text)
|
16 |
+
|
17 |
response = requests.post(url, headers=headers)
|
18 |
|
19 |
print(response.text)
|