tsengiii commited on
Commit
050cb5e
·
verified ·
1 Parent(s): 746152a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -3,7 +3,8 @@ import requests
3
 
4
  # 替換為你選擇的模型 API URL
5
  API_URL = "https://api-inference.huggingface.co/models/KappaNeuro/ukiyo-e-art"
6
- headers = {"Authorization": "Bearer YOUR_HUGGINGFACE_API_TOKEN"} # 替換為你的 Hugging Face API token
 
7
 
8
  def query(payload):
9
  response = requests.post(API_URL, headers=headers, json=payload)
 
3
 
4
  # 替換為你選擇的模型 API URL
5
  API_URL = "https://api-inference.huggingface.co/models/KappaNeuro/ukiyo-e-art"
6
+ headers = {"Authorization": headers = {"Authorization": "Bearer hf_your_actual_token_here"}
7
+ } # 替換為你的 Hugging Face API token
8
 
9
  def query(payload):
10
  response = requests.post(API_URL, headers=headers, json=payload)