Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
| 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(
|