Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -302,8 +302,8 @@ with gr.Blocks(theme="soft") as demo:
|
|
302 |
def adv_compare(m1, m2, fname):
|
303 |
if not m1 or not m2 or not fname:
|
304 |
return "Please provide both model IDs and the file name."
|
305 |
-
url1 = f"https://huggingface.co/{m1}/resolve/main/{fname}"
|
306 |
-
url2 = f"https://huggingface.co/{m2}/resolve/main/{fname}"
|
307 |
with tempfile.TemporaryDirectory() as tmp:
|
308 |
f1 = os.path.join(tmp, "f1.safetensors")
|
309 |
f2 = os.path.join(tmp, "f2.safetensors")
|
|
|
302 |
def adv_compare(m1, m2, fname):
|
303 |
if not m1 or not m2 or not fname:
|
304 |
return "Please provide both model IDs and the file name."
|
305 |
+
url1 = f"https://huggingface.co/{m1}/resolve/main/{fname}?download=true"
|
306 |
+
url2 = f"https://huggingface.co/{m2}/resolve/main/{fname}?download=true"
|
307 |
with tempfile.TemporaryDirectory() as tmp:
|
308 |
f1 = os.path.join(tmp, "f1.safetensors")
|
309 |
f2 = os.path.join(tmp, "f2.safetensors")
|