Update app.py
Browse files
app.py
CHANGED
@@ -48,9 +48,9 @@ def main(prompt):
|
|
48 |
"content-type": "application/json",
|
49 |
"X-API-KEY": os.environ.get("test")
|
50 |
}
|
51 |
-
|
52 |
-
response = requests.post(url, json=payload, headers=headers)
|
53 |
try:
|
|
|
54 |
data = json.loads(response.text)
|
55 |
try:
|
56 |
data = data["message"]
|
|
|
48 |
"content-type": "application/json",
|
49 |
"X-API-KEY": os.environ.get("test")
|
50 |
}
|
51 |
+
|
|
|
52 |
try:
|
53 |
+
response = requests.post(url, json=payload, headers=headers)
|
54 |
data = json.loads(response.text)
|
55 |
try:
|
56 |
data = data["message"]
|