svjack commited on
Commit
0933cd2
·
verified ·
1 Parent(s): 0626ef0

Update genshin_impact_couple_app.py

Browse files
Files changed (1) hide show
  1. genshin_impact_couple_app.py +3 -0
genshin_impact_couple_app.py CHANGED
@@ -9,6 +9,9 @@ from huggingface_hub import snapshot_download
9
  from datasets import load_from_disk
10
  import random
11
 
 
 
 
12
  # 下载数据集
13
  repo_id = "svjack/3DitScene_cache"
14
  folder_path = "Genshin-Impact-Couple-with-Tags-IID-Gender-Only-Two-Joy-Caption_Head10"
 
9
  from datasets import load_from_disk
10
  import random
11
 
12
+ # Fix the random seed for reproducibility
13
+ random.seed(42) # You can use any fixed number as the seed
14
+
15
  # 下载数据集
16
  repo_id = "svjack/3DitScene_cache"
17
  folder_path = "Genshin-Impact-Couple-with-Tags-IID-Gender-Only-Two-Joy-Caption_Head10"