Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
|
|
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)
|