hanjian.thu123 commited on
Commit
513d569
·
1 Parent(s): 251a9fd

[update] show device

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
15
 
16
  def load_pipeline():
17
  global pipe
18
- print("Loading GRN pipeline...")
19
  # 从 Hugging Face Hub 下载权重
20
  pipe = GRNPipeline.from_pretrained(
21
  hf_repo_id='bytedance-research/GRN',
 
15
 
16
  def load_pipeline():
17
  global pipe
18
+ print(f"Loading GRN pipeline ({device=})...")
19
  # 从 Hugging Face Hub 下载权重
20
  pipe = GRNPipeline.from_pretrained(
21
  hf_repo_id='bytedance-research/GRN',