Spaces:
Runtime error
Runtime error
Update chat_func.py
Browse files- chat_func.py +6 -0
chat_func.py
CHANGED
@@ -466,8 +466,14 @@ def reduce_token_size(
|
|
466 |
|
467 |
|
468 |
|
|
|
|
|
|
|
|
|
|
|
469 |
|
470 |
user_id = os.environ.get("USERNAME")
|
|
|
471 |
print(user_id)
|
472 |
print(f"Hugging Face IP address: {hf_ip}")
|
473 |
print(f"Hugging Face username: {hf_username}")
|
|
|
466 |
|
467 |
|
468 |
|
469 |
+
# 获取 Hugging Face 的 IP 地址
|
470 |
+
hf_ip = os.getenv("HF_IP_ADDRESS")
|
471 |
+
|
472 |
+
# 获取 Hugging Face 的用户名
|
473 |
+
hf_username = os.getenv("HF_USERNAME")
|
474 |
|
475 |
user_id = os.environ.get("USERNAME")
|
476 |
+
|
477 |
print(user_id)
|
478 |
print(f"Hugging Face IP address: {hf_ip}")
|
479 |
print(f"Hugging Face username: {hf_username}")
|