hermi612 commited on
Commit
b091824
·
verified ·
1 Parent(s): a750822

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,9 +1,10 @@
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
- # 在 app.py 顶部添加
4
  import os
5
  os.environ["HF_ENDPOINT"] = "https://hf-mirror.com" # 中国大陆加速
6
-
 
 
7
 
8
 
9
  # 使用 Hugging Face Inference API 调用云端模型(无需本地加载)
 
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
 
3
  import os
4
  os.environ["HF_ENDPOINT"] = "https://hf-mirror.com" # 中国大陆加速
5
+ # 部署后查看 Logs 标签页的输出
6
+ import tenacity
7
+ print(f"Tenacity版本: {tenacity.__version__}")
8
 
9
 
10
  # 使用 Hugging Face Inference API 调用云端模型(无需本地加载)