Dividend9853 commited on
Commit
fdaa330
·
verified ·
1 Parent(s): 84ee80f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -50,10 +50,12 @@ def hash_repo(repo_name: str):
50
  )
51
  blobs[hash] = [
52
  f"https://modelscope.cn/api/v1/models/hanamizukiai/{sub_repo_id}/repo?Revision=main&FilePath={file.rfilename}",
53
- f"https://wisemodel.cn/file-proxy/hanamizuki-ai/{sub_repo_id}/-/raw/main/{file.rfilename}",
54
- f"https://gitcode.net/spectator2639/{sub_repo_id}/-/raw/main/{file.rfilename}",
55
  ]
56
- return converted, blobs
 
 
57
 
58
 
59
  iface = gr.Interface(
 
50
  )
51
  blobs[hash] = [
52
  f"https://modelscope.cn/api/v1/models/hanamizukiai/{sub_repo_id}/repo?Revision=main&FilePath={file.rfilename}",
53
+ # f"https://wisemodel.cn/file-proxy/hanamizuki-ai/{sub_repo_id}/-/raw/main/{file.rfilename}",
54
+ # f"https://gitcode.net/spectator2639/{sub_repo_id}/-/raw/main/{file.rfilename}",
55
  ]
56
+
57
+ wrapped_meta = {"repo_id": repo_name, items: converted}
58
+ return wrapped_meta, blobs
59
 
60
 
61
  iface = gr.Interface(