Spaces:
Sleeping
Sleeping
Peiiiiiiiiru
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import json
|
|
6 |
|
7 |
# Hugging Face API 資訊
|
8 |
API_URL = "https://api-inference.huggingface.co/models/KappaNeuro/ukiyo-e-art"
|
9 |
-
headers = {"Authorization":
|
10 |
|
11 |
# 呼叫模型的函數,並處理回應格式
|
12 |
def query(payload):
|
|
|
6 |
|
7 |
# Hugging Face API 資訊
|
8 |
API_URL = "https://api-inference.huggingface.co/models/KappaNeuro/ukiyo-e-art"
|
9 |
+
headers = {"Authorization": "Bearer hf_MySpaceToken"}
|
10 |
|
11 |
# 呼叫模型的函數,並處理回應格式
|
12 |
def query(payload):
|