alanchen1115 commited on
Commit
7e2ecaa
·
verified ·
1 Parent(s): c2e815f

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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") # 從回應中取得圖片的外部連結