import os
import requests
payload = {
"inputs": {
"captions": {
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/3ae4dd16-1e96-11f0-9b1c-02420a0001c1/2008BU6533.jpg": "\"Tippoo's Tiger\" was made for Tipu Sultan, ruler of Mysore in South India (1782-1799). The almost life-size wooden semi-automaton consists of a tiger mauling a prostrate figure in European clothes. An organ is concealed inside the tiger's body, and when a handle at the side is turned, the organ can be played and the man's arm simultaneously lifts up and down. Intermittent noises are supposed to imitate the wails of the dying man.",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/3af09f48-1e96-11f0-a172-02420a0001c3/2008BU6522.jpg": "\"Tippoo's Tiger\" was made for Tipu Sultan, ruler of Mysore in South India (1782-1799). The almost life-size wooden semi-automaton consists of a tiger mauling a prostrate figure in European clothes. An organ is concealed inside the tiger's body, and when a handle at the side is turned, the organ can be played and the man's arm simultaneously lifts up and down. Intermittent noises are supposed to imitate the wails of the dying man.",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/3af322fe-1e96-11f0-874e-02420a0001c4/2008BU6520.jpg": "\"Tippoo's Tiger\" was made for Tipu Sultan, ruler of Mysore in South India (1782-1799). The almost life-size wooden semi-automaton consists of a tiger mauling a prostrate figure in European clothes. An organ is concealed inside the tiger's body, and when a handle at the side is turned, the organ can be played and the man's arm simultaneously lifts up and down. Intermittent noises are supposed to imitate the wails of the dying man.",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/3af52d88-1e96-11f0-8ea6-02420a0001c1/2008BU6527.jpg": "\"Tippoo's Tiger\" was made for Tipu Sultan, ruler of Mysore in South India (1782-1799). The almost life-size wooden semi-automaton consists of a tiger mauling a prostrate figure in European clothes. An organ is concealed inside the tiger's body, and when a handle at the side is turned, the organ can be played and the man's arm simultaneously lifts up and down. Intermittent noises are supposed to imitate the wails of the dying man.",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/3af9b48e-1e96-11f0-8c42-02420a0001c3/2008BU6534.jpg": "\"Tippoo's Tiger\" was made for Tipu Sultan, ruler of Mysore in South India (1782-1799). The almost life-size wooden semi-automaton consists of a tiger mauling a prostrate figure in European clothes. An organ is concealed inside the tiger's body, and when a handle at the side is turned, the organ can be played and the man's arm simultaneously lifts up and down. Intermittent noises are supposed to imitate the wails of the dying man.",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/3b7832be-1e96-11f0-8c42-02420a0001c3/2008BU6535.jpg": "\"Tippoo's Tiger\" was made for Tipu Sultan, ruler of Mysore in South India (1782-1799). The almost life-size wooden semi-automaton consists of a tiger mauling a prostrate figure in European clothes. An organ is concealed inside the tiger's body, and when a handle at the side is turned, the organ can be played and the man's arm simultaneously lifts up and down. Intermittent noises are supposed to imitate the wails of the dying man.",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/3b80f840-1e96-11f0-8ea6-02420a0001c1/2008BU6540.jpg": "\"Tippoo's Tiger\" was made for Tipu Sultan, ruler of Mysore in South India (1782-1799). The almost life-size wooden semi-automaton consists of a tiger mauling a prostrate figure in European clothes. An organ is concealed inside the tiger's body, and when a handle at the side is turned, the organ can be played and the man's arm simultaneously lifts up and down. Intermittent noises are supposed to imitate the wails of the dying man.",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/3b8549ea-1e96-11f0-9b1c-02420a0001c1/2008BU6541.jpg": "\"Tippoo's Tiger\" was made for Tipu Sultan, ruler of Mysore in South India (1782-1799). The almost life-size wooden semi-automaton consists of a tiger mauling a prostrate figure in European clothes. An organ is concealed inside the tiger's body, and when a handle at the side is turned, the organ can be played and the man's arm simultaneously lifts up and down. Intermittent noises are supposed to imitate the wails of the dying man.",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/3bad5908-1e96-11f0-a172-02420a0001c3/2006AH4168.jpg": "\"Tippoo's Tiger\" was made for Tipu Sultan, ruler of Mysore in South India (1782-1799). The almost life-size wooden semi-automaton consists of a tiger mauling a prostrate figure in European clothes. An organ is concealed inside the tiger's body, and when a handle at the side is turned, the organ can be played and the man's arm simultaneously lifts up and down. Intermittent noises are supposed to imitate the wails of the dying man.",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/3c03a79a-1e96-11f0-874e-02420a0001c4/2008BU6546.jpg": "\"Tippoo's Tiger\" was made for Tipu Sultan, ruler of Mysore in South India (1782-1799). The almost life-size wooden semi-automaton consists of a tiger mauling a prostrate figure in European clothes. An organ is concealed inside the tiger's body, and when a handle at the side is turned, the organ can be played and the man's arm simultaneously lifts up and down. Intermittent noises are supposed to imitate the wails of the dying man.",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/3c113248-1e96-11f0-a172-02420a0001c3/2008BU6545.jpg": "\"Tippoo's Tiger\" was made for Tipu Sultan, ruler of Mysore in South India (1782-1799). The almost life-size wooden semi-automaton consists of a tiger mauling a prostrate figure in European clothes. An organ is concealed inside the tiger's body, and when a handle at the side is turned, the organ can be played and the man's arm simultaneously lifts up and down. Intermittent noises are supposed to imitate the wails of the dying man.",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/3baddb8a-1e96-11f0-874e-02420a0001c4/hero2006AH4169.jpg": "\"Tippoo's Tiger\" was made for Tipu Sultan, ruler of Mysore in South India (1782-1799). The almost life-size wooden semi-automaton consists of a tiger mauling a prostrate figure in European clothes. An organ is concealed inside the tiger's body, and when a handle at the side is turned, the organ can be played and the man's arm simultaneously lifts up and down. Intermittent noises are supposed to imitate the wails of the dying man.",
},
"model_type": "concept",
"input_images": [
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/3af52d88-1e96-11f0-8ea6-02420a0001c1/2008BU6527.jpg",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/3af09f48-1e96-11f0-a172-02420a0001c3/2008BU6522.jpg",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/3af322fe-1e96-11f0-874e-02420a0001c4/2008BU6520.jpg",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/3ae4dd16-1e96-11f0-9b1c-02420a0001c1/2008BU6533.jpg",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/3af9b48e-1e96-11f0-8c42-02420a0001c3/2008BU6534.jpg",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/3b7832be-1e96-11f0-8c42-02420a0001c3/2008BU6535.jpg",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/3b80f840-1e96-11f0-8ea6-02420a0001c1/2008BU6540.jpg",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/3b8549ea-1e96-11f0-9b1c-02420a0001c1/2008BU6541.jpg",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/3baddb8a-1e96-11f0-874e-02420a0001c4/hero2006AH4169.jpg",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/3bad5908-1e96-11f0-a172-02420a0001c3/2006AH4168.jpg",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/3c03a79a-1e96-11f0-874e-02420a0001c4/2008BU6546.jpg",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/3c113248-1e96-11f0-a172-02420a0001c3/2008BU6545.jpg",
],
"trigger_word": "TIPUZ",
}
}
response = requests.post(
"https://test.api.gooey.ai/v2/model-trainer?example_id=y5ia09slwdzr",
headers={
"Authorization": "bearer " + os.environ["GOOEY_API_KEY"],
},
json=payload,
)
assert response.ok, response.content
result = response.json()
print(response.status_code, result)