Spaces:
Runtime error
Runtime error
Efreak
commited on
Commit
•
1d6c0dc
1
Parent(s):
cace2a9
I know now why you cry, but it\'s something I can never do
Browse files
app.py
CHANGED
@@ -59,8 +59,7 @@ def duplicate(source_url, preview_url, model_id, dst_repo, token, repo_type, nsf
|
|
59 |
subprocess.check_call([r"rm","-rf",dir])
|
60 |
|
61 |
return (
|
62 |
-
f'Find your commit at the top of <a href=\'https://hf.co/{dst_repo}/commits/main{repopath}\' target="_blank" style="text-decoration:underline">your commits</a>,
|
63 |
-
"sp.jpg",
|
64 |
)
|
65 |
|
66 |
except Exception as e:
|
@@ -96,8 +95,7 @@ interface = gr.Interface(
|
|
96 |
gr.Checkbox(label="Pull Request?", info="uncheck if you have write access and want to merge your file directly",value=True),
|
97 |
],
|
98 |
outputs=[
|
99 |
-
gr.Markdown(label="output")
|
100 |
-
gr.Image(show_label=False),
|
101 |
],
|
102 |
title="Download a civitai model to your repo!",
|
103 |
description="Download a model from Civitai to your repo on HF. Hopefully will soon parse the modelid from the download url, then get the preview automatically from the api response (lets be realistic, this will never happen); in the meantime you need to provide the model id number from the download url , and the location of the preview file.\n\nThis Space is a an experimental demo.",
|
|
|
59 |
subprocess.check_call([r"rm","-rf",dir])
|
60 |
|
61 |
return (
|
62 |
+
f'Find your commit at the top of <a href=\'https://hf.co/{dst_repo}/commits/main{repopath}\' target="_blank" style="text-decoration:underline">your commits</a>, or your pull request <a href="{ret}">here</a>. Here\'s your preview:<br><img src="{preview_url}">'
|
|
|
63 |
)
|
64 |
|
65 |
except Exception as e:
|
|
|
95 |
gr.Checkbox(label="Pull Request?", info="uncheck if you have write access and want to merge your file directly",value=True),
|
96 |
],
|
97 |
outputs=[
|
98 |
+
gr.Markdown(label="output")
|
|
|
99 |
],
|
100 |
title="Download a civitai model to your repo!",
|
101 |
description="Download a model from Civitai to your repo on HF. Hopefully will soon parse the modelid from the download url, then get the preview automatically from the api response (lets be realistic, this will never happen); in the meantime you need to provide the model id number from the download url , and the location of the preview file.\n\nThis Space is a an experimental demo.",
|