Spaces:
Sleeping
Sleeping
Commit
·
085804b
1
Parent(s):
075959d
test deepseek
Browse files
app.py
CHANGED
@@ -85,10 +85,10 @@ def deepseek_api_replicate(user_message, system_message, max_new_tokens, tempera
|
|
85 |
str hoặc [bytes]: output model sinh ra
|
86 |
"""
|
87 |
# 1. Khởi tạo client và xác thực
|
88 |
-
token = os.getenv("REPLICATE_API_TOKEN")
|
89 |
-
if not token:
|
90 |
-
|
91 |
-
client = replicate.Client(api_token=
|
92 |
|
93 |
# 2. Gọi model
|
94 |
output = client.run(
|
|
|
85 |
str hoặc [bytes]: output model sinh ra
|
86 |
"""
|
87 |
# 1. Khởi tạo client và xác thực
|
88 |
+
# token = os.getenv("REPLICATE_API_TOKEN")
|
89 |
+
# if not token:
|
90 |
+
# raise RuntimeError("Missing REPLICATE_API_TOKEN") # bảo mật bằng biến môi trường
|
91 |
+
client = replicate.Client(api_token="REPLICATE_API_TOKEN")
|
92 |
|
93 |
# 2. Gọi model
|
94 |
output = client.run(
|