mirror of
https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-06-07 10:10:23 +08:00
feat(web): support uploading file in model info
This commit is contained in:
@@ -63,6 +63,7 @@ def show_model_info(cpt, show_long_id=False):
|
||||
|
||||
def show_info(path):
|
||||
try:
|
||||
if hasattr(path, "name"): path = path.name
|
||||
a = torch.load(path, map_location="cpu")
|
||||
txt = show_model_info(a, show_long_id=True)
|
||||
del a
|
||||
|
||||
Reference in New Issue
Block a user