Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -101,7 +101,7 @@ def generate_and_upload_image(prompt: str) -> str:
|
|
| 101 |
}
|
| 102 |
# --- 2. 發送請求至 Pixazo API ---
|
| 103 |
response = requests.post(url, json=data, headers=headers)
|
| 104 |
-
print(response.json()) # 在控制台查看原始回應數據內容
|
| 105 |
# 解析 JSON 回應
|
| 106 |
resp_data = response.json()
|
| 107 |
image_url = resp_data.get("imageUrl") # 從回應中取得圖片的外部連結
|
|
|
|
| 101 |
}
|
| 102 |
# --- 2. 發送請求至 Pixazo API ---
|
| 103 |
response = requests.post(url, json=data, headers=headers)
|
| 104 |
+
# print(response.json()) # 在控制台查看原始回應數據內容
|
| 105 |
# 解析 JSON 回應
|
| 106 |
resp_data = response.json()
|
| 107 |
image_url = resp_data.get("imageUrl") # 從回應中取得圖片的外部連結
|